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

Disassembly:
push 0xffffffffffffffff
push 0x5f245d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x180]
mov dword [esp + 0x168], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x51263c
lea ecx, [esp + 0x180]
mov dword [esp + 0x168], 0xffffffff
call fcn.005c3f1f
xor eax, eax
jmp 0x512d73
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.00513e30
mov esi, dword [eax]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x178]
mov edi, dword [eax + 4]
mov ebp, dword [eax + 8]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.004fda70
test eax, eax
jne 0x5126a1
lea eax, [esp + 0x20]
lea ecx, [esp + 0x174]
push eax
call fcn.004ff9f0
test eax, eax
jne 0x5126a1
xor ecx, ecx
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], ecx
jmp 0x5126af
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x174]
cmp eax, esi
jg 0x5126c4
jne 0x5126d9
cmp ecx, edi
jg 0x5126c4
jne 0x5126d9
cmp dword [esp + 0x17c], ebp
jle 0x5126d9
mov dword [esp + 0x174], esi
mov dword [esp + 0x178], edi
mov dword [esp + 0x17c], ebp
lea ecx, [ebx + 0xd8]
lea esi, [ebx + 0x100]
push esi
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x80], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x84], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], eax
call fcn.005c3c94
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x20]
lea eax, [esi + 0x24]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x16c], 1
mov dword [esp + 0x5c], edx
call fcn.005c3c94
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x174]
mov ecx, ebx
push eax
mov byte [esp + 0x16c], 2
call fcn.0050d560
mov esi, eax
test esi, esi
je 0x51283e
lea ecx, [esi + 0xc8]
mov edx, dword [esi + 0xc8]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x94]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], eax
call fcn.004e26b0
mov eax, dword [esp + 0x178]
mov ecx, esi
push eax
call fcn.004e4070
test eax, eax
je 0x51283e
lea ecx, [esp + 0xb8]
push ecx
mov ecx, eax
call fcn.004dca50
lea edx, [esp + 0x124]
push eax
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x170], 3
call fcn.004dd480
lea ecx, [esp + 0x124]
call fcn.004dd330
lea ecx, [esp + 0xb8]
mov byte [esp + 0x168], 2
call fcn.004dd330
mov eax, dword [esp + 0x188]
test eax, eax
je 0x512867
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x40]
call fcn.004dd480
lea ecx, [esp + 0xb8]
call fcn.004dd330
mov eax, dword [esp + 0x184]
test eax, eax
je 0x512887
lea ecx, [esp + 0x94]
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.004e26b0
mov esi, dword [esp + 0x170]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x108]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x34], eax
xor ebx, ebx
xor edi, edi
xor ebp, ebp
call fcn.005c2ef9
mov eax, dword [esp + 0x180]
mov ecx, dword [0x1b29e58]
mov eax, dword [eax - 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x90], eax
cmp eax, edi
mov byte [esp + 0x168], 5
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
jle 0x512ceb
jmp 0x5128e5
xor edi, edi
mov edx, dword [esp + 0x18]
push 2
lea eax, [esp + 0x90]
push edx
push eax
lea ecx, [esp + 0x18c]
call fcn.005bfcad
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 6
call fcn.005c4058
lea ecx, [esp + 0x8c]
mov byte [esp + 0x168], 5
call fcn.005c3f1f
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0xd
je 0x512ad5
cmp dword [esp + 0xac], edi
je 0x512ad5
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.005c3c94
call fcn.0053a6a0
lea edi, [ebp + 0x94]
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
mov esi, eax
call fcn.005c3c94
call fcn.0053a6a0
add esp, 4
cmp esi, eax
je 0x512abc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x512abc
push 0x104
call fcn.005c3c60
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov byte [esp + 0x168], 0xb
je 0x512a9b
sub esp, 0x3c
lea eax, [esp + 0x74]
mov esi, esp
mov dword [esp + 0x50], esp
push eax
mov ecx, esi
mov dword [esp + 0x70], esi
call fcn.005c3c94
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x1a4], 0xc
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x7c]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x80]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x88]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x8c]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x90]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x98]
lea ecx, [esi + 0x24]
push eax
mov dword [esi + 0x20], edx
call fcn.005c3c94
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0xa0]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0xa4]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0xa8]
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0xac]
mov dword [esi + 0x38], edx
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
mov byte [esp + 0x1ac], 0xd
call fcn.005c3c94
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x164]
mov byte [esp + 0x1b8], 0xb
call fcn.004beb20
mov ecx, dword [esp + 0x74]
push eax
push ebx
push ecx
mov ecx, edi
call fcn.004ddfe0
jmp 0x512a9d
xor eax, eax
push eax
mov ecx, ebx
mov byte [esp + 0x16c], 5
mov ebp, eax
call fcn.004e3ac0
mov dword [esp + 0x14], 0
jmp 0x512cca
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.005c4337
mov dword [esp + 0x14], 0
jmp 0x512cca
push 0xdc
call fcn.005c3c60
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov byte [esp + 0x168], 7
je 0x512b1e
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x3f
call fcn.004e29e0
mov edi, eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
lea eax, [esp + 0x94]
lea ecx, [esp + 0x104]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x84]
push eax
push ecx
lea ecx, [edi + 0xc8]
mov byte [esp + 0x170], 5
mov ebx, edi
mov dword [esp + 0xa8], edx
call fcn.004e26b0
push 0x104
call fcn.005c3c60
mov ebp, eax
add esp, 4
mov dword [esp + 0x30], ebp
test ebp, ebp
mov byte [esp + 0x168], 8
je 0x512c90
sub esp, 0x3c
lea edx, [esp + 0x74]
mov esi, esp
mov dword [esp + 0x58], esp
push edx
mov ecx, esi
mov dword [esp + 0xc8], esi
call fcn.005c3c94
mov eax, dword [esp + 0x78]
mov byte [esp + 0x1a4], 9
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x7c]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x80]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x84]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x88]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x98]
mov dword [esi + 0x20], ecx
push edx
lea ecx, [esi + 0x24]
call fcn.005c3c94
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0xa4]
mov dword [esi + 0x30], edx
mov eax, dword [esp + 0xa8]
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0xac]
mov dword [esi + 0x38], ecx
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0xc8], esp
push edx
mov byte [esp + 0x1ac], 0xa
call fcn.005c3c94
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b8], 8
call fcn.004beb20
push eax
mov eax, dword [esp + 0x78]
push edi
push eax
mov ecx, ebp
call fcn.004ddfe0
jmp 0x512c92
xor eax, eax
push eax
mov ecx, edi
mov byte [esp + 0x16c], 5
mov ebp, eax
call fcn.004e3ac0
mov ecx, dword [esp + 0xac]
push edi
push ecx
lea ecx, [esp + 0xac]
call fcn.005c2898
mov edx, dword [esp + 0x10]
cmp byte [edx], 0xd
jne 0x512cca
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x90]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x5128e3
mov esi, dword [esp + 0x170]
mov edx, dword [esp + 0x174]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x17c]
sub esp, 0xc
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x190]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x88]
call fcn.00512e30
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x168], 4
call fcn.005c3f1f
lea ecx, [esp + 0xa4]
mov byte [esp + 0x168], 2
call fcn.005c2f2c
lea ecx, [esp + 0x38]
mov byte [esp + 0x168], 0
call fcn.004dd330
lea ecx, [esp + 0x180]
mov dword [esp + 0x168], 0xffffffff
call fcn.005c3f1f
mov eax, esi
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret 0x1c