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

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov cl, byte [eax]
xor edi, edi
lea ebp, [esi + 4]
lea ebx, [esi + 0x14]
mov byte [esi], cl
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp ecx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x611d1d
cmp dword [esi + 0x2c], edi
je 0x611b8f
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp ecx, edx
je 0x611b8f
lea eax, [ecx + 4]
cmp eax, edx
mov dword [esi + 0x1c], eax
jne 0x611b7a
mov edx, dword [esp + 0x18]
call fcn.004d1f70
mov ecx, esi
call fcn.00612480
jmp 0x611cd8
cmp ecx, edi
je 0x611cd8
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [ecx], eax
jmp 0x611cd8
push 0x1000
call fcn.00652710
mov edi, eax
mov eax, dword [esi + 0x2c]
add esp, 4
test eax, eax
jne 0x611c03
mov ecx, esi
mov dword [esi + 0x28], 2
call fcn.00612910
mov ecx, dword [esi + 0x24]
mov dword [ecx + 4], edi
mov edx, dword [esi + 0x24]
add edx, 4
add edi, 0x800
push edx
push edi
lea ecx, [esp + 0x28]
call fcn.006129a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, ebp
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [edi + 0xc], edx
mov edi, ebx
mov dword [edi], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
jmp 0x611cc4
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
lea ecx, [edx + ecx*4 - 4]
cmp eax, ecx
jae 0x611c49
add eax, 4
lea ecx, [esp + 0x30]
mov dword [esi + 0x20], eax
mov dword [eax], edi
mov edx, dword [esi + 0x20]
push edx
push edi
call fcn.006129a0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x611cc4
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ecx, esi
sar eax, 2
inc eax
mov dword [esp + 0x74], eax
add eax, eax
push eax
call fcn.00612930
mov ecx, dword [esp + 0x74]
push eax
lea ecx, [eax + ecx*4]
mov dword [esp + 0x78], ecx
mov dword [ecx], edi
mov edx, dword [esi + 0xc]
push edx
lea ecx, [esp + 0x48]
call fcn.006129a0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x50]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x74]
push eax
push edi
call fcn.006129a0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + 4]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x18]
call fcn.004d1f70
xor edi, edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x611d0d
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea ecx, [eax + 0x1000]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
cmp edx, eax
jne 0x611b4c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4