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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x18], edx
mov esi, ecx
push edi
test eax, eax
je 0x57eec4
call fcn.0057f21d
lea ecx, [esi + 0x7d0]
call fcn.00595789
mov dword [ebp - 0x18], eax
mov edx, dword [esi + 0x74]
lea edi, [esi + 0x1c]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
test edx, edx
je 0x57eeda
mov eax, dword [esi + 0x78]
cmp eax, dword [edi]
je 0x57eefe
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [edi]
mov dword [esi + 0x78], ebx
call dword [eax]
mov dword [esi + 0x74], eax
test eax, eax
je 0x57f1b6
mov eax, dword [edi]
mov dword [esi + 0x78], eax
mov edx, dword [esi + 0x7c]
lea ebx, [esi + 0x80]
test edx, edx
je 0x57ef12
mov eax, dword [ebx]
cmp eax, dword [esi + 0x18]
je 0x57ef38
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax + 4]
mov edx, dword [esi + 0x18]
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esi + 0x14]
mov ecx, eax
call dword [eax]
mov dword [esi + 0x7c], eax
test eax, eax
je 0x57f1b6
mov eax, dword [esi + 0x18]
mov dword [ebx], eax
xor edx, edx
mov dword [ebp - 0x24], 1
mov dword [esi + 0x348], edx
mov ecx, edx
mov dword [esi + 0x350], edx
mov dword [esi + 0x354], edx
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x40], eax
mov eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x57efea
cmp dword [ebp - 0x18], 0
je 0x57efad
lea ecx, [esi + 0x7d0]
lea edx, [ebp - 8]
call fcn.005958c8
mov edx, eax
xor eax, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x57f147
mov ecx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
cmp dword [esi + 0x68], edx
jne 0x57efea
mov eax, dword [ebx]
mov ecx, dword [esi + 0x7c]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x34]
push edx
mov dword [ebp - 0x1c], ecx
mov edx, ecx
mov ecx, eax
call dword [eax]
mov ecx, dword [ebp - 8]
add dword [esi + 0x60], ecx
push 0
pop edx
adc dword [esi + 0x64], edx
mov dword [esi + 0x6c], eax
test ecx, ecx
je 0x57efe4
test eax, eax
je 0x57efea
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x68], eax
mov edx, dword [edi]
xor eax, eax
sub edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x44], eax
je 0x57f02b
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x54]
cmp dword [ebp - 0x44], eax
jb 0x57f02b
mov eax, dword [ebp - 0x20]
ja 0x57f019
cmp edx, eax
jb 0x57f02b
mov edx, eax
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x40], eax
mov dword [ebp - 0x28], edx
cmovne eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, ecx
mov dword [ebp - 0x14], edx
sub eax, dword [ebp - 0xc]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0xc], ecx
lea ecx, [esi + 0x88]
sete al
add edx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0057f38c
mov ecx, dword [ebp - 0x48]
mov edx, eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
mov dword [esi + 0x780], ecx
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0xc], ecx
add dword [esi + 0x58], ecx
push 0
pop ecx
adc dword [esi + 0x5c], ecx
add eax, dword [esi + 0x50]
mov dword [ebp - 0x30], eax
adc ecx, dword [esi + 0x54]
cmp dword [ebp - 0x20], 0
mov dword [esi + 0x50], eax
mov eax, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edx
mov dword [esi + 0x784], edx
mov dword [esi + 0x54], eax
jne 0x57f0b4
test ecx, ecx
je 0x57f151
test edx, edx
jne 0x57f151
and dword [ebp - 0x20], edx
cmp ecx, dword [ebp - 0x28]
jae 0x57f157
mov ecx, dword [ebp - 0x30]
cmp dword [esi + 0x3c], 0
je 0x57f13e
test edx, edx
jne 0x57f13e
mov eax, dword [esi + 0x58]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x5c]
sbb eax, dword [ebp - 0x38]
test eax, eax
ja 0x57f10f
jb 0x57f0f3
cmp dword [ebp - 0x4c], 0x400000
jae 0x57f10f
mov eax, ecx
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
sbb eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
jne 0x57f10f
cmp dword [ebp - 0x4c], 0x400000
jb 0x57f13e
push dword [ebp - 0x10]
mov eax, dword [esi + 0x3c]
push ecx
push dword [esi + 0x5c]
mov ecx, eax
push dword [esi + 0x58]
call dword [eax]
mov edx, eax
test edx, edx
jne 0x57f1a5
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x20], 0
jne 0x57f1b2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor edx, edx
jmp 0x57ef7b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
je 0x57f0cb
mov eax, dword [esi + 0x38]
mov ecx, eax
push dword [ebp - 4]
mov edx, dword [esi + 0x74]
call dword [eax]
mov ecx, eax
add ecx, dword [esi + 0x50]
push 0
pop edx
adc edx, dword [esi + 0x54]
mov dword [ebp - 0x10], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
cmp eax, dword [ebp - 4]
jne 0x57f19a
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x57f0cb
mov ecx, dword [ebp + 8]
push 9
pop eax
mov dword [ecx + 0x38], eax
jmp 0x57f1b9
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0xa
mov dword [eax + 0x30], edx
mov eax, edx
jmp 0x57f1b9
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 4