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

Disassembly:
sub esp, 0x50
mov eax, dword [0x433014]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov dword [esp], ecx
push ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
test ecx, ecx
je 0x402526
mov al, byte [ebx]
cmp al, 0x2b
je 0x402521
cmp al, 0x2d
jne 0x402526
xor edi, edi
inc edi
jmp 0x402528
xor edi, edi
mov eax, dword [ebp + 0x14]
mov edx, 0x3000
and eax, edx
cmp eax, edx
je 0x40253d
mov edx, 0x42543c
jmp 0x40255f
lea eax, [edi + 2]
mov edx, 0x425440
cmp eax, ecx
ja 0x40255f
cmp byte [ebx + edi], 0x30
jne 0x40255f
mov cl, byte [ebx + edi + 1]
cmp cl, 0x78
je 0x40255d
cmp cl, 0x58
jne 0x40255f
mov edi, eax
push edx
push ebx
call fcn.0040e730
mov dword [esp + 0x2c], eax
push 0x2e
pop eax
mov word [esp + 0x24], ax
call fcn.0040e80b
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0040e730
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004018d3
pop ecx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00401f9e
push 0
push dword [esp + 0x14]
lea ecx, [esp + 0x34]
call fcn.00401b0f
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x20]
cmovae eax, dword [esp + 0x2c]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x14]
add eax, ecx
push eax
push ecx
mov ecx, esi
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
push eax
call fcn.00401a3e
pop ecx
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], esi
call fcn.00401f9e
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x14], al
cmp ebx, esi
je 0x40264b
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [esp + 0x40], 0x10
mov cl, al
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
cmp ebx, esi
mov byte [eax + ebx], cl
cmove ebx, dword [esp + 0x24]
lea esi, [esp + 0x44]
cmp dword [esp + 0x58], 0x10
cmovae esi, dword [esp + 0x44]
jmp 0x40268a
test al, al
jle 0x402690
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x402690
push dword [esp + 0x14]
sub ebx, ecx
lea ecx, [esp + 0x30]
push 1
push ebx
call fcn.00403e92
lea eax, [esi + 1]
cmp byte [eax], 0
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x402660
cmp dword [ebp + 0x24], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
jl 0x4026b1
jg 0x4026a6
cmp dword [ebp + 0x20], 0
jbe 0x4026b1
mov esi, dword [ebp + 0x20]
cmp esi, eax
jbe 0x4026b1
sub esi, eax
jmp 0x4026b3
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ebx, dword [esp + 0x64]
and eax, 0x1c0
cmp eax, 0x40
je 0x402770
cmp eax, 0x100
je 0x40271e
push esi
push dword [esp + 0x7c]
lea eax, [esp + 0x1c]
push dword [esp + 0x78]
push dword [esp + 0x78]
push eax
push ebx
call fcn.00402f2b
xor esi, esi
cmp dword [esp + 0x58], 0x10
push edi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
mov dword [esp + 0x94], edx
push eax
push ebx
mov dword [esp + 0xa0], ecx
call fcn.00402ef8
add esp, 0x30
jmp 0x402796
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
push edi
cmovae eax, dword [esp + 0x30]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x20]
push dword [esp + 0x78]
push eax
push ebx
call fcn.00402ef8
push esi
push dword [esp + 0x94]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0x94], eax
lea eax, [esp + 0x38]
push ecx
push eax
push ebx
mov dword [esp + 0x9c], ecx
call fcn.00402f2b
add esp, 0x30
xor esi, esi
jmp 0x402796
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
push edi
cmovae eax, dword [esp + 0x30]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x20]
push dword [esp + 0x78]
push eax
push ebx
call fcn.00402ef8
add esp, 0x18
mov edx, dword [eax + 4]
mov ecx, dword [eax]
lea eax, [esp + 0x2c]
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x6c], ecx
cmovae eax, dword [esp + 0x2c]
sub dword [esp + 0x10], edi
add eax, edi
push dword [esp + 0x10]
mov dword [esp + 0x74], edx
push eax
push edx
push ecx
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00402ef8
push esi
push dword [esp + 0x94]
mov esi, dword [esp + 0x48]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
and dword [ebp + 0x20], 0
and dword [ebp + 0x24], 0
push eax
push ecx
push esi
push ebx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
call fcn.00402f2b
add esp, 0x30
lea ecx, [esp + 0x44]
call fcn.00402ffe
lea ecx, [esp + 0x2c]
call fcn.00402ffe
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407e99
add esp, 0x50
ret