Function at 0x40400e
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x2c627a61
mov dword [esp + 0x64], 0x1f6c2d5e
mov dword [esp + 0x38], 0x46865cb7
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
mov dword [esp + 0x5c], edx
mov bh, byte [esp + 0x87]
test bl, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], bh
jne 0x404159
jmp 0x40422d
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff8
mov dword [esp + 0x5c], eax
jmp 0x404159
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x50], eax
mov cl, byte [esp + 0x47]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x50], eax
sete dl
and cl, dl
test cl, 1
jne 0x40407b
jmp 0x40418d
mov eax, dword [esp + 0x88]
and eax, dword [esp + 0x88]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x34]
mov cx, word [eax]
mov dx, cx
add dx, 0xffbf
mov si, cx
add si, 0x20
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
mov bx, word [edi + eax*2]
cmp dx, 0x1a
cmovb cx, si
cmp bx, cx
sete al
and al, 1
mov byte [esp + 0x46], al
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x48]
add esi, 1
cmp esi, eax
setb al
cmp cx, 0
setne ah
and ah, byte [esp + 0x46]
and ah, al
mov dword [esp + 0x58], esi
test ah, 1
jne 0x404165
jmp 0x404287
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x5c], 0
cmp ecx, eax
jne 0x40408b
mov eax, dword [esp + 0x5c]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x603fa920
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x48]
shl ecx, 1
add ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
cmp eax, edx
ja 0x4040c4
mov eax, dword [esp + 0x4c]
mov cx, word [eax + 0x24]
shr cx, 1
movzx eax, cx
mov dword [esp + 0x2c], eax
cmp cx, 0
jne 0x4042be
mov eax, 0x3601a711
mov cl, byte [esp + 0x13]
xor cl, 0xda
mov byte [esp + 0x87], cl
mov dword [esp + 0x54], 0x123f967f
mov dword [esp + 0x88], 0xe11826b9
cmp eax, dword [esp + 0x54]
jb 0x4042be
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
xor esi, esi
mov edi, 0x9b4db0a5
sub edi, ecx
mov ecx, esi
sbb ecx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, 0x2003caa8
sub eax, edx
sbb esi, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
jb 0x404139
jmp 0x40408b
mov eax, dword [esp + 0x64]
xor eax, 0x1f6c3d5e
mov dword [esp + 4], eax
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [esp + 4]
cmp ecx, edx
cmovb ecx, eax
mov si, word [esp + 0x76]
mov eax, dword [ecx + 0x30]
mov word [esp + 0x76], si
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x5c], 0
cmp eax, ecx
je 0x404159
jmp 0x4042a0
mov al, byte [esp + 0x46]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x5c], ecx
test al, 1
jne 0x404159
jmp 0x4041aa
mov eax, dword [esp + 0x18]
cmp eax, 0
setne cl
and cl, 1
mov byte [esp + 0x47], cl
mov edx, dword [esp + 0x60]
mov dword [esp + 0x30], edx
jmp 0x40408b
mov dword [esp + 0x58], 0
jmp 0x404165