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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5069dd
sub esp, 0x7c
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x51b2e0]
mov dword [esp + 0x64], eax
lea ecx, [0x5679dc]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004cb030
call fcn.005048b0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call fcn.004f4ad0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x5069cb
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], esi
lea eax, [0x5180c0]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
call fcn.004f8c60
mov edi, dword [esp + 0x60]
lea esi, [esp + 0xc]
call fcn.0045add8
mov eax, dword [esp + 0x80]
mov dword [eax + 0x10], 0x10
mov dword [eax + 0x14], 0x10
mov ecx, dword [0x63be10]
test ecx, ecx
jne 0x5069b6
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x61de04]
mov edx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x10
call fcn.004f82c0
mov eax, dword [0x619dfc]
mov ecx, dword [0x619df8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
lea edx, [0x534c4a]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.00445b80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x80]
mov dword [esp], edx
call fcn.00505b70
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
xor edx, edx
xor ebx, ebx
jmp 0x50683e
mov ebp, dword [esp + 0x40]
lea edx, [ebp + 1]
mov ecx, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x54]
cmp ecx, edx
jle 0x50697a
mov dword [esp + 0x40], edx
mov byte [esp + 0x2f], bl
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x74], ecx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x78], ebx
lea ebp, [esp + 0x6c]
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004f7a20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0x1b6
call fcn.004880a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50690c
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00488f50
movzx eax, byte [esp + 0x2f]
jmp 0x50682d
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00409050
mov eax, dword [esp + 8]
lea ecx, [0x51b2e0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x537137]
mov dword [esp], eax
mov dword [esp + 4], 0xf
lea edx, [esp + 0x64]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cafb0
mov eax, 1
jmp 0x50682d
test bl, bl
je 0x506998
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov eax, dword [0x61e928]
mov ecx, dword [0x61e92c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.0045a680
mov eax, ecx
jmp 0x506791
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], esi
add esp, 0x7c
ret
call fcn.00459120
jmp fcn.00506660