Function at 0x4024a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x78], 0
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x68]
and edi, 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x68]
mov word [esp + 0x5e], 0x3353
mov byte [esp + 0xaf], 0
mov dword [esp + 0x64], 0
mov bl, byte [esp + 0xaf]
mov dword [esp + 0x74], 1
mov dword [esp + 0xc8], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa0], 0xc
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x9c], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x58], 0x1000
mov byte [esp + 0xa7], 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
mov word [esp + 0xba], 0
mov byte [esp + 0xc3], 8
mov dword [esp + 0xd4], 0
mov dword [esp + 0x30], eax
mov ax, word [esp + 0xba]
mov dword [esp + 0xc4], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe0], edx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xbc], ecx
mov word [esp + 0xde], 0x682c
mov dword [esp + 0xb4], 0
mov dword [esp + 0xcc], 0
mov edx, dword [esp + 0x30]
cmp dword [esp + 0xbc], edx
mov dword [esp + 0x2c], edi
mov word [esp + 0x2a], ax
mov byte [esp + 0x29], bl
mov dword [esp + 0x24], esi
jbe 0x402636
mov eax, 0
mov ecx, 0xffffffff
mov dword [esp + 0x6c], ecx
mov ecx, eax
sub ecx, dword [esp + 0x70]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0xc4], 0
sub eax, ecx
mov dword [esp + 0xd8], eax
jmp 0x4028a8
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0xd8]
add ecx, 0
mov dword [esp + 0xd8], ecx
lea eax, [esp + 0xc3]
mov byte [esp + 0xc3], 0xd7
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0xcc]
and esi, 0
mov dword [esp + 0xcc], esi
mov esi, dword [esp + 0x64]
and esi, eax
mov dword [esp + 0x64], esi
cmp ecx, edx
jae 0x402724
mov eax, 0
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xe0]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
mov eax, edx
xor edx, edx
mov esi, dword [esp + 0x38]
div esi
movsx eax, byte [edx + 0x407258]
sub ecx, eax
mov bl, cl
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x54]
mov byte [esp + eax + 0x7c], bl
mov eax, dword [esp + 0xd4]
xor eax, 0
mov dword [esp + 0xd4], eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xcc]
and ecx, 0
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0xb0], eax
jmp 0x402655
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0xbc]
mov dl, byte [esp + 0x29]
mov byte [esp + ecx + 0x7c], dl
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov dh, byte [esp + 0xa7]
add dh, 0xb
mov dword [esp], eax
mov byte [esp + 0x1f], dh
call fcn.004016a0
lea ecx, [0x40de84]
mov si, ax
mov word [esp + 0x48], si
mov dl, byte [esp + 0x1f]
mov byte [esp + 0xa7], dl
mov word [esp + 0x4a], si
mov byte [esp + 0xc3], 0xb0
mov dword [esp], ecx
call fcn.004016a0
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x4027c9
mov eax, 0xfffffffd
lea ecx, [esp + 0xd4]
lea edx, [esp + 0xde]
mov esi, dword [esp + 0xcc]
mov bl, byte [esp + 0xa7]
mov bh, dl
or bl, bh
mov byte [esp + 0xa7], bl
and esi, ecx
mov dword [esp + 0xcc], esi
mov dword [esp + 0x6c], eax
jmp 0x4028a8
call fcn.004023b0
lea ecx, [0x40de89]
lea edx, [esp + 0x54]
mov esi, dword [esp + 0xd8]
xor esi, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0xa8], eax
mov dword [esp], ecx
call fcn.004016a0
lea ecx, [esp + 0x70]
mov edx, dword [esp + 0xa8]
mov esi, dword [esp + 0xc8]
sub ecx, esi
mov esi, dword [esp + 0x50]
lea edi, [esp + 0xb4]
mov ebx, esp
mov dword [ebx + 0xc], edi
mov di, word [esp + 0x2a]
movzx edi, di
mov dword [ebx + 8], edi
lea edi, [esp + 0x48]
mov dword [ebx + 4], edi
mov dword [ebx], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call edx
sub esp, 0x10
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x24]
cmp eax, edx
je 0x402875
lea eax, [esp + 0xde]
mov ecx, dword [esp + 0x54]
or ecx, eax
mov dword [esp + 0x54], ecx
mov dl, byte [esp + 0xc3]
add dl, 0xaf
mov byte [esp + 0xc3], dl
mov dword [esp + 0x6c], 0
jmp 0x4028a8
lea eax, [0x40de8f]
mov dword [esp], eax
call fcn.004016a0
lea ecx, [esp + 0x60]
mov edx, dword [esp + 0xb4]
mov bl, byte [esp + 0xa7]
mov bh, cl
and bl, bh
mov byte [esp + 0xa7], bl
mov dword [esp + 0x6c], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x5e]
or ecx, edx
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x70]
neg ecx
mov dword [esp + 0x70], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8