Function at 0x402e05
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0x3f50ee28
mov dword [esp + 0x64], 0x3f50ee10
mov word [esp + 0x5a], 0xf9b3
mov esi, dword [esp + 0x64]
sub edx, esi
mov dword [esp + 0x20], eax
mov edx, dword fs:[edx]
mov bl, byte [esp + 0x73]
xor bl, 0xff
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0xc]
mov byte [esp + 0x73], bl
mov edx, eax
add edx, 0x14
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], 0
cmp eax, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
je 0x402f27
jmp 0x402f0c
mov eax, dword [esp + 0x1c]
add eax, eax
mov cl, byte [esp + 0x3b]
mov dword [esp + 0x5c], eax
test cl, cl
lea eax, [esp + 0x32]
lea edx, [esp + 0x2a]
cmovne edx, eax
mov si, word [edx]
mov eax, dword [esp + 0x4c]
xor edx, edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x18]
cmp word [edx + eax*2], si
sete cl
and cl, 1
mov byte [esp + 0x59], cl
mov eax, dword [esp + 0x4c]
cmp si, 0
setne cl
mov si, word [esp + 0x62]
xor si, 0xb242
and cl, byte [esp + 0x59]
mov word [esp + 0x62], si
add eax, 1
cmp eax, dword [esp + 0x34]
setb ch
and cl, ch
mov dword [esp + 0x3c], eax
test cl, 1
jne 0x402f7b
jmp 0x403075
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x402f27
jmp 0x402f33
mov eax, dword [esp + 0x20]
cmp eax, 0
setne cl
and cl, 1
mov byte [esp + 0x4b], cl
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
jmp 0x402f33
mov eax, dword [esp + 0x40]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
or eax, 0x502daf9
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov dl, byte [esp + 0x4b]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
sete dh
and dl, dh
test dl, 1
jne 0x403049
jmp 0x403014
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0x7c3d369
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov si, word [ecx + edx*2]
movzx ecx, word [esp + 0x5a]
xor ecx, 0xf9a9
mov di, cx
mov word [esp + 0x2a], si
movzx ecx, word [esp + 0x2a]
mov si, cx
add ecx, 0xffffffbf
mov bx, cx
sub bx, di
setb byte [esp + 0x3b]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x2636c3ff
sub eax, edx
mov edx, dword [esp + 8]
sbb edx, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
add ecx, 0x32dc0421
add si, 0x20
mov word [esp + 0x32], si
mov eax, dword [esp + 0xc]
cmp ecx, eax
mov word [esp + 6], bx
ja 0x402e76
jmp 0x402e76
mov eax, dword [esp + 0x2c]
mov cx, word [eax + 0x24]
mov dx, word [esp + 0x5a]
add dx, 0x64e
mov word [esp + 4], cx
mov cx, dx
mov dx, word [esp + 4]
shr dx, cl
movzx eax, dx
mov dword [esp + 0x34], eax
cmp dx, 0
je 0x402ef0
jmp 0x403068
mov ax, word [esp + 0x62]
xor ax, word [esp + 0x62]
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff8
mov word [esp + 0x62], ax
mov dword [esp + 0x40], ecx
jmp 0x402f27
mov dword [esp + 0x3c], 0
jmp 0x402f7b
mov eax, dword [esp + 0x44]
mov cl, byte [esp + 0x59]
mov dword [esp + 0x40], eax
test cl, 1
jne 0x402f27
jmp 0x402ef0