Function at 0x42f1d0
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 0x42f259
mov ecx, dword [ebp + 0x134]
cmp dword [ecx + 0x50], eax
jne 0x42f20f
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 0x42f266
push ebx
jmp 0x42f267
push edi
push esi
mov ecx, ebp
call fcn.0042e700
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x42f281
mov dword [esp + 0x14], edi
mov ebx, edi
mov ecx, dword [ebp + 0x134]
mov dword [esp + 0x6c], 0xffffffff
cmp dword [ecx + 0x128], 2
jne 0x42f2cb
push ebx
call fcn.00470920
mov ecx, dword [ebp + 0x134]
push esi
mov edi, eax
push 0
push ebx
add ecx, 0x100
mov dword [esp + 0x78], edi
call fcn.004d5f95
test edi, edi
jl 0x42f2da
mov ecx, dword [ebp + 0x134]
push esi
mov edx, edi
push 0
push edx
jmp 0x42f2cf
push esi
push 0
push ebx
add ecx, 0xec
call fcn.004d5f95
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 0x42f420
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.00429140
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 0x42f38d
mov eax, dword [eax + 0x104]
mov ecx, dword [esp + 0x10]
mov dword [eax + ecx], ebx
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x42f39a
mov edx, dword [ebp + 0x134]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0xf0]
mov dword [eax + ecx], ebx
jmp 0x42f39a
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.0046e840
mov edi, eax
test edi, edi
je 0x42f3f2
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.004703e0
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 0x42f312
mov eax, dword [esp + 0x70]
test eax, eax
je 0x42f433
mov ecx, dword [ebp + 0x134]
call fcn.004703d0
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