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

Disassembly:
push 0xffffffffffffffff
push 0x71017b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
call fcn.00493040
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa4], 0
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
cmp ebx, ecx
mov dword [esp + 0x58], ecx
je 0x5d9972
mov eax, dword [ebx]
mov ecx, esi
push eax
call fcn.005da1c0
mov dl, byte [esi + 0x34]
mov ecx, dword [ebx]
mov edi, dword [esi + 0x3c]
mov byte [esp + 0x5c], dl
mov eax, dword [esp + 0x5c]
push 0
lea edx, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, edi
call fcn.0061eec0
cmp eax, edi
je 0x5d98ce
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
cmp ecx, edx
jge 0x5d98ce
mov eax, edi
cmp eax, dword [esi + 0x3c]
jne 0x5d98dd
mov dword [esp + 0x34], 0
jmp 0x5d98e4
mov edx, dword [esi + 0x30]
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x10c]
mov ebp, dword [ebx]
cmp eax, 6
je 0x5d9963
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x70]
push ebp
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x48]
cmp eax, ecx
jne 0x5d9963
mov ecx, dword [esi + 0x24]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x10c]
mov edi, eax
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x60]
test al, al
je 0x5d9963
mov ecx, dword [esi + 0x24]
push ebp
call fcn.00405880
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
mov dword [esp + 0x6c], edx
push eax
lea edx, [esp + 0x64]
push ecx
push edx
push edi
mov ecx, esi
call fcn.005d8a20
mov eax, dword [esp + 0x58]
add ebx, 4
cmp ebx, eax
jne 0x5d988e
mov eax, dword [esp + 0xac]
mov ecx, dword [esi + 0x48]
cmp eax, ecx
jne 0x5d9ae8
lea ecx, [esp + 0x14]
call fcn.00493040
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x7c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0xac], 1
call fcn.005d5180
mov ebx, eax
mov ebp, dword [esp + 0x14]
mov byte [esp + 0xa4], 2
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x6c], ebx
mov ebx, eax
mov dword [ebx], ebp
mov ebp, dword [esp + 0x18]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x1c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x20]
mov dword [ebx + 0xc], ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x20], ecx
push edx
lea ecx, [eax + 0x14]
mov dword [esp + 0x20], edi
call fcn.005df170
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 1
call fcn.00493530
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5d9a5f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.004f7b90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
je 0x5d9a5f
add eax, 8
mov ecx, esi
push eax
call fcn.005dabf0
mov ecx, dword [esp + 0x10]
add ecx, 8
push ecx
mov ecx, esi
call fcn.005da910
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx]
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x5d9a33
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x5d9ac9
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], 0
jmp 0x5d9ad7
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
call fcn.00494390
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0
call fcn.00493530
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.005d5630
lea ecx, [esp + 0x38]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00493530
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0xc