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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x10c]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0xb4]
add ecx, dword [eax + 0x48]
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0xb8]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x5c], ecx
mov ecx, 0x7fffffff
mov dword [ebp - 0x58], ecx
mov edx, dword [eax + 0x48]
mov dword [ebp - 0x54], edx
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 0x4c], ecx
call fcn.005a4f69
test eax, eax
jne 0x59e9ca
mov eax, dword [ebp + 0x18]
and dword [ebp - 8], 0
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
call fcn.0059ef1a
mov edi, eax
jmp 0x59e9bf
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jg 0x59e9c7
mov eax, dword [edi + 0x1c]
test al, 1
je 0x59e7e8
test al, 4
je 0x59e7e8
test al, 8
je 0x59e7e8
cmp ecx, ebx
je 0x59e9c7
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jg 0x59e826
mov eax, dword [edi + 0x1c]
mov edx, eax
and edx, 1
je 0x59e805
test al, 4
je 0x59e805
test al, 8
je 0x59e805
cmp ecx, ebx
je 0x59e826
cmp edx, 1
jne 0x59e80e
test al, 4
jne 0x59e826
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push edi
call fcn.0059eee3
mov edi, eax
test edi, edi
jne 0x59e7e8
jmp 0x59e9c7
test edi, edi
je 0x59e9c7
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jg 0x59e9bf
mov eax, dword [edi + 0x1c]
test al, 1
je 0x59e850
test al, 4
je 0x59e850
test al, 8
je 0x59e850
cmp ecx, ebx
je 0x59e9bf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.005a50ee
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push edi
call fcn.0059eee3
mov ebx, eax
mov eax, dword [ebx + 0x2c]
lea esi, [ebx + 0x3c]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x40], eax
movsd dword es:[edi], dword [esi]
xor esi, esi
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebp - 0x10]
jg 0x59e8f1
mov eax, dword [ebx + 0x1c]
mov edx, eax
and edx, 1
je 0x59e8ae
test al, 4
je 0x59e8ae
test al, 8
je 0x59e8ae
cmp ecx, dword [ebp - 0x10]
je 0x59e8f1
cmp edx, 1
jne 0x59e8b7
test al, 4
jne 0x59e8f1
test edx, edx
jne 0x59e8dc
mov eax, dword [ebx + 0x3c]
cmp dword [ebp - 0x24], eax
jge 0x59e8c6
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x40]
cmp dword [ebp - 0x20], eax
jge 0x59e8d1
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x44]
cmp dword [ebp - 0x1c], eax
jge 0x59e8dc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov esi, ebx
push ebx
call fcn.0059eee3
mov ebx, eax
test ebx, ebx
jne 0x59e88f
mov esi, dword [esi + 0x2c]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp + 0x18], ebx
push ebx
call fcn.0059eee3
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x10]
lea edi, [ebp - 0x48]
push ebx
mov ebx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
call fcn.0059e23c
test eax, eax
je 0x59e968
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 0x3c]
call fcn.0059eee3
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x2c]
mov eax, dword [ebp - 0x18]
push esi
push dword [eax + 4]
call dword [eax + 0x78]
test eax, eax
jne 0x59e9c9
cmp dword [ebp - 0x2c], eax
je 0x59e88d
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x18]
mov eax, esi
sub eax, dword [ebp - 0x14]
test byte [ecx + 0x1e], 0x80
je 0x59e97f
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call dword [eax + 0x68]
test eax, eax
jne 0x59e9c9
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
test edi, edi
jne 0x59e7c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14