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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x64]
mov ebp, ecx
mov ecx, dword [esp + 0x6c]
push edi
xor eax, eax
lea edi, [ebx + esi]
cmp ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
je 0x42ebc9
mov ecx, dword [ebp + 0x134]
cmp dword [ecx + 0x50], eax
jne 0x42eb7f
mov edx, dword [ecx]
push eax
call dword [edx + 0x7c]
mov ecx, dword [ebp + 0x134]
push 0
lea edx, [esp + 0x2c]
push 0x1000
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x3c]
push edx
push 0
call dword [eax + 0x50]
mov eax, dword [ebp + 0x134]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x7c]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [eax + edx*4 - 0x1c]
or ch, 0x50
lea eax, [eax + edx*4 - 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x6c]
push 0
test eax, eax
je 0x42ebd6
push ebx
jmp 0x42ebd7
push edi
push esi
mov ecx, ebp
call fcn.0042e070
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x42ebf1
mov dword [esp + 0x14], edi
mov ebx, edi
mov ecx, dword [ebp + 0x134]
mov dword [esp + 0x6c], 0xffffffff
cmp dword [ecx + 0x128], 2
jne 0x42ec3b
push ebx
call fcn.00470320
mov ecx, dword [ebp + 0x134]
push esi
mov edi, eax
push 0
push ebx
add ecx, 0x100
mov dword [esp + 0x78], edi
call fcn.004d6470
test edi, edi
jl 0x42ec4a
mov ecx, dword [ebp + 0x134]
push esi
mov edx, edi
push 0
push edx
jmp 0x42ec3f
push esi
push 0
push ebx
add ecx, 0xec
call fcn.004d6470
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x18], eax
rep stosd dword es:[edi], eax
test esi, esi
mov byte [esp + 0x4c], 4
jle 0x42ed90
mov ecx, dword [esp + 0x6c]
lea eax, [ebx*4]
mov dword [esp + 0x10], eax
lea edx, [ecx*4]
mov dword [esp + 0x1c], edx
mov esi, dword [ebp + 0x134]
push 0xffffffffffffffff
add esi, 0xc4
mov ecx, esi
mov ebx, dword [esi + 4]
lea eax, [ebx + 1]
push eax
call fcn.00428da0
mov ecx, dword [esi + 0xc]
mov eax, ebx
cdq
idiv ecx
mov esi, dword [esi + 0x14]
mov edi, eax
mov eax, ebx
cdq
idiv ecx
lea ecx, [edx + edx*4]
mov edx, dword [esi + edi*4]
lea esi, [esp + 0x38]
lea edi, [edx + ecx*8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x134]
cmp dword [eax + 0x128], 2
jne 0x42ecfd
mov eax, dword [eax + 0x104]
mov ecx, dword [esp + 0x10]
mov dword [eax + ecx], ebx
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x42ed0a
mov edx, dword [ebp + 0x134]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0xf0]
mov dword [eax + ecx], ebx
jmp 0x42ed0a
mov edx, dword [eax + 0xf0]
mov eax, dword [esp + 0x10]
mov dword [edx + eax], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, ebp
push edx
call fcn.0046e240
mov edi, eax
test edi, edi
je 0x42ed62
mov esi, dword [ebp + 0x134]
mov eax, ebx
cdq
mov ecx, dword [esi + 0xd0]
push esi
idiv ecx
mov esi, dword [esi + 0xd8]
mov edx, eax
mov eax, ebx
mov dword [esp + 0x28], edx
cdq
idiv ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + edx*4]
mov edx, dword [esi + ecx*4]
mov ecx, edi
lea eax, [edx + eax*8]
push eax
call fcn.0046fde0
or dword [esp + 0x44], 0x4000000
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, 4
add esi, ecx
add edx, ecx
mov ecx, dword [esp + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edx
jl 0x42ec82
mov eax, dword [esp + 0x70]
test eax, eax
je 0x42eda3
mov ecx, dword [ebp + 0x134]
call fcn.0046fdd0
mov ecx, dword [ebp + 0x134]
push 1
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov esi, dword [esp + 0x64]
mov eax, dword [ebp]
push esi
lea ecx, [esp + 0x24]
push 3
push ecx
push 0
mov ecx, ebp
mov dword [esp + 0x30], 0x5113c8
call dword [eax + 0x80]
mov ebp, dword [ebp + 0x134]
push esi
lea eax, [esp + 0x24]
push 3
mov edx, dword [ebp]
push eax
push 0
mov ecx, ebp
call dword [edx + 0x80]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10