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

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0xb4]
mov ecx, 1
test eax, eax
mov dword [esp + 0x1c], 0
push ebx
cmovs eax, ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0xb8], eax
mov ecx, 0x20
mov eax, dword [esp + 0xbc]
test eax, eax
push ebp
cmove eax, ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc4]
test eax, eax
push esi
mov esi, dword [esp + 0xb0]
cmove eax, ecx
mov ecx, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xd4]
test edi, edi
push dword [esp + 0xd8]
mov dword [esp + 0xd0], eax
mov eax, 0x800
push dword [esp + 0xc0]
cmove edi, eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0xb0]
xor ebx, ebx
push dword [esp + 0xc0]
add eax, ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xb8]
mov ebp, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push esi
push eax
mov dword [esp + 0xe8], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
call fcn.005d9ae0
add esp, 0x14
test eax, eax
jne 0x5d9edb
test edi, edi
je 0x5d9d86
mov dword [esi + 0xc], edi
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x5d9d94
mov dword [esi + 0x10], eax
push 0
push 0
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005d9a00
add esp, 0x10
test eax, eax
jne 0x5d9edb
cmp dword [esp + 0x30], ebx
jbe 0x5d9e9c
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], 3
mov dword [esp + 0x20], 0x12
lea esp, [esp]
mov ecx, dword [esp + 0xac]
mov eax, ebp
mov edx, dword [esp + 0xa4]
sub eax, ecx
test ebx, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov ebp, edi
cmove edx, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xa4], edx
cmp edi, 2
jb 0x5d9e50
jne 0x5d9e26
cmp eax, 0x400
ja 0x5d9e50
test ebx, ebx
je 0x5d9e50
cmp ebx, 4
jae 0x5d9e50
cmp dword [esp + 0x10], ecx
jmp 0x5d9ee8
cmp dword [esp + 0x10], ecx
jne 0x5d9e30
test ebx, ebx
je 0x5d9e50
cmp edi, 3
jne 0x5d9ee6
cmp dword [esp + 0x38], 0xc00
jbe 0x5d9eee
cmp ebx, 4
jb 0x5d9eee
mov eax, dword [esp + 0xd4]
inc ebx
push 0
push 1
mov dword [esi + 0xc], eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005d9a00
add esp, 0x10
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], 0
ja 0x5d9dd0
test ebx, ebx
je 0x5d9e9c
push ebx
push dword [esp + 0xa8]
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.005d9670
add esp, 0x10
mov ebp, eax
mov eax, dword [esp + 0xb0]
mov word [ebp], 0x11
mov byte [ebp + 2], 0
add ebp, 3
sub ebp, dword [esp + 0xac]
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], ebp
test eax, eax
je 0x5d9ed9
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5d9ed9
push 0
push ebp
push dword [esp + 0x64]
push eax
call ecx
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test edi, edi
je 0x5d9e50
mov edi, dword [esp + 0xb4]
cmp dword [edi + 0x14], 0
je 0x5d9f1a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call fcn.005d9720
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xor esi, esi
cmp dword [esp + 0xc4], esi
je 0x5da06a
cmp ebp, dword [esp + 0xcc]
jae 0x5da06a
push ebx
push eax
push ebp
call fcn.005d9b60
mov dword [esp + 0x28], eax
add esp, 0xc
dec eax
cmp dword [esp + 0xc4], eax
cmovbe eax, dword [esp + 0xc4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x5da06a
cmp dword [esp + 0x30], ebp
jbe 0x5da06a
mov eax, dword [esp + 0xd4]
cmp ebp, dword [esp + 0xc8]
jb 0x5d9f7e
shr eax, 2
push 0
push 1
mov dword [edi + 0xc], eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.005d9a00
mov edi, dword [esp + 0x44]
add esp, 0x10
inc esi
cmp edi, ebp
jb 0x5da059
jne 0x5d9fb0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jae 0x5da059
mov eax, dword [esp + 0xb4]
cmp dword [eax + 0x14], 0
je 0x5d9fd4
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.005d9720
mov edi, dword [esp + 0x40]
add esp, 0xc
lea eax, [esi + ebx]
push eax
push dword [esp + 0x3c]
push edi
call fcn.005d9b60
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x5da059
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x10], ecx
jne 0x5d9ffe
xor edx, edx
jmp 0x5da012
push ebx
push dword [esp + 0x18]
push esi
call fcn.005d9b60
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, esi
cmp ebx, 3
ja 0x5da027
lea ecx, [esi + ebx]
cmp dword [esp + 0x28], ecx
sbb ecx, ecx
and ecx, 2
jmp 0x5da037
cmp ebx, 0x12
ja 0x5da039
lea ecx, [esi + ebx]
cmp dword [esp + 0x20], ecx
sbb ecx, ecx
neg ecx
add ecx, esi
sub eax, dword [esp + 0x1c]
lea ecx, [ecx + eax*2]
test edx, edx
je 0x5da04b
mov eax, edx
sub eax, esi
lea ecx, [ecx + eax*2]
xor eax, eax
test ecx, ecx
cmovs ecx, eax
lea eax, [ecx + ebp]
cmp edi, eax
jae 0x5da091
mov edi, dword [esp + 0xb4]
cmp esi, dword [esp + 0x24]
jb 0x5d9f61
test ebx, ebx
je 0x5da0e9
push ebx
push dword [esp + 0xa8]
lea eax, [esp + 0x34]
push dword [esp + 0x18]
push eax
call fcn.005d9670
add esp, 0x10
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
jmp 0x5da0fd
inc dword [esp + 0x74]
test edx, edx
je 0x5da0d7
push esi
push ebx
push dword [esp + 0xac]
lea eax, [esp + 0x38]
push dword [esp + 0x1c]
push eax
call fcn.005d99b0
push dword [esp + 0x28]
xor ebx, ebx
push esi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.005d97c0
mov esi, dword [esp + 0xd8]
mov ebp, eax
add esp, 0x24
mov dword [esp + 0x10], ebp
jmp 0x5d9e71
mov ebp, dword [esp + 0x10]
add ebx, esi
mov esi, dword [esp + 0xb4]
jmp 0x5d9e75
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
push dword [esp + 0x14]
xor ebx, ebx
push ebp
push eax
lea eax, [esp + 0x38]
push eax
call fcn.005d97c0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xe4]
mov dword [edi + 0xc], eax
lea eax, [esi + 1]
push eax
push ebp
lea eax, [esp + 0x44]
push edi
push eax
call fcn.005d9a00
mov esi, dword [esp + 0xd4]
add esp, 0x20
jmp 0x5d9e6d