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

Disassembly:
sub esp, 0x274
push ebx
push ebp
mov ebx, dword [esp + 0x280]
xor eax, eax
push esi
push edi
lea edi, [esp + 0x40]
xor ebp, ebp
and dword [esp + 0x18], ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x28c]
cmp dword [edi], 2
jne 0x402677
mov eax, dword [esp + 0x290]
mov ecx, dword [eax + 0x14]
lea esi, [eax + 0x1c]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
js 0x402670
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
js 0x4027fa
lea eax, [esp + 0x28]
push eax
push 1
push dword [esp + 0x20]
call dword [ebx + 0x84]
lea eax, [esp + 0x2c]
push eax
push 1
push dword [esp + 0x20]
call dword [ebx + 0x88]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
add eax, 1
je 0x402627
push 1
push ebp
push 0xc
call dword [ebx + 0x78]
add edi, 0x40c
mov ebp, eax
cmp byte [edi], 0
je 0x4025ba
lea eax, [esp + 0x80]
push eax
push edi
push ebx
call fcn.00402fe1
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x84]
push eax
call dword [ebx + 0x70]
mov esi, eax
jmp 0x4025be
mov esi, dword [esp + 0x28]
push dword [esp + 0x14]
mov eax, 0x2008
push 0
push 8
mov word [esp + 0x3c], ax
call dword [ebx + 0x78]
and dword [esp + 0x10], 0
cmp dword [esp + 0x14], 0
mov dword [esp + 0x38], eax
jbe 0x40260a
xor eax, eax
push dword [esi + eax*4]
call dword [ebx + 0x8c]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
call dword [ebx + 0x7c]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x4025e5
and dword [esp + 0x10], 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [ebx + 0x7c]
mov esi, dword [esp + 0x290]
add esi, 0x1c
and dword [esp + 0x48], 0
lea edx, [esp + 0x60]
push edx
push ebp
xor eax, eax
sub esp, 0x10
inc eax
mov edi, esp
mov word [esp + 0x58], ax
mov eax, dword [esi]
lea esi, [esp + 0x58]
push eax
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x94]
test ebp, ebp
je 0x4027fa
push dword [esp + 0x38]
call dword [ebx + 0x80]
push ebp
call dword [ebx + 0x80]
jmp 0x4027fa
and dword [esi], ebp
jmp 0x4027fa
lea eax, [esp + 0x80]
push eax
lea eax, [edi + 0x20c]
push eax
push ebx
call fcn.00402fe1
add esp, 0xc
lea eax, [esp + 0x80]
push eax
call dword [ebx + 0x8c]
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x4027fd
lea eax, [esp + 0x80]
push eax
lea eax, [edi + 0x30c]
push eax
push ebx
call fcn.00402fe1
add esp, 0xc
lea eax, [esp + 0x80]
push eax
call dword [ebx + 0x8c]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4027f3
mov eax, dword [esp + 0x290]
mov edx, dword [eax + 0x14]
lea esi, [eax + 0x18]
push esi
push ebp
push edx
mov ecx, dword [edx]
call dword [ecx + 0x44]
mov dword [esp + 0x24], eax
test eax, eax
js 0x4027e8
add edi, 0x40c
xor ebp, ebp
mov eax, esi
cmp byte [edi], 0
je 0x4027a2
lea eax, [esp + 0x80]
push eax
push edi
push ebx
call fcn.00402fe1
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x84]
push eax
call dword [ebx + 0x70]
push dword [esp + 0x14]
mov edi, eax
push ebp
push 0xc
call dword [ebx + 0x78]
mov ebp, eax
mov eax, esi
test ebp, ebp
je 0x4027a2
and dword [esp + 0x10], 0
cmp dword [esp + 0x14], 0
jbe 0x4027a2
push 8
xor eax, eax
pop esi
push dword [edi + eax*4]
call dword [ebx + 0x8c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x14]
mov word [esp + 0x54], si
push eax
push ebp
call dword [ebx + 0x7c]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x402789
push ebp
call dword [ebx + 0x80]
xor ebp, ebp
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x402758
mov eax, dword [esp + 0x290]
add eax, 0x18
cmp dword [esp + 0x24], 0
jl 0x4027e4
mov eax, dword [eax]
lea edx, [esp + 0x70]
push edx
push ebp
sub esp, 0x10
lea esi, [esp + 0x58]
mov ecx, dword [eax]
mov edi, esp
push 0
movsd dword es:[edi], dword [esi]
push 0x118
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x40]
push esi
push eax
call dword [ecx + 0xe4]
test ebp, ebp
je 0x4027de
push ebp
call dword [ebx + 0x80]
mov ebp, dword [esp + 0x1c]
jmp 0x4027ec
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push esi
call dword [ebx + 0x90]
push ebp
call dword [ebx + 0x90]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x274
ret