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

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ebx
push ebp
mov edx, dword [ecx]
mov eax, dword [eax]
push esi
mov esi, dword [esp + 0x78]
push edi
mov dword [esp + 0x10], eax
mov ecx, dword [esi]
mov dword [esp + 0x14], edx
xor edi, edi
mov ebx, eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x3c], eax
cmp edx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 1
je 0x5c9538
mov eax, dword [ecx + 0x10]
xor ecx, ecx
mov cx, word [esi + 0x5c]
push eax
push ecx
call edx
add esp, 8
test eax, eax
je 0x5c9534
mov edx, dword [esp + 0x60]
mov dword [edx], 0x85
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
add edx, 6
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], edx
mov cl, byte [eax]
mov dword [esp + 0x78], edi
mov dword [esp + 0x20], edi
mov edi, 0xfffffffe
cmp cl, 0x80
mov ebp, edi
je 0x5c9577
cmp cl, 0x81
je 0x5c9577
cmp cl, 0x83
je 0x5c9577
xor ecx, ecx
mov dword [esp + 0x28], ecx
jmp 0x5c9593
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], 1
mov ecx, dword [edx - 4]
and ecx, 0xffff
add edx, 4
mov dword [esp + 0x14], edx
cmp byte [eax], 0x88
jne 0x5c95c0
xor edx, edx
mov dh, byte [eax + 3]
mov dl, byte [eax + 4]
mov dword [esp + 0x34], edx
mov word [esp + 0x44], dx
mov edx, dword [esi + 0x60]
mov dword [esp + 0x40], edx
mov dx, word [esi + 0x5e]
mov word [esp + 0x46], dx
lea edx, [esp + 0x40]
mov dword [esi + 0x60], edx
mov esi, dword [esp + 0x80]
mov byte [eax + 1], 0
mov eax, dword [esp + 0x10]
neg esi
mov byte [eax + 2], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
sbb esi, esi
lea eax, [edx + eax + 3]
lea edx, [esp + 0x18]
mov dword [esp + 0x10], eax
and esi, edx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x5c9629
test ecx, ecx
jbe 0x5c9629
mov byte [eax], 0x7d
mov eax, dword [esp + 0x10]
mov edx, ecx
inc eax
shr edx, 8
mov dword [esp + 0x10], eax
mov byte [eax], dl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 2
add eax, 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x7c]
push esi
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x44]
push edx
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.005c9880
add esp, 0x2c
test eax, eax
je 0x5c952a
jge 0x5c9676
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x5c9710
cmp byte [ebx], 0x78
je 0x5c96a4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x78], eax
jmp 0x5c9710
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
cmp ebp, ecx
jne 0x5c96b6
cmp dword [esp + 0x20], edx
je 0x5c96cd
test ebp, ebp
jl 0x5c96c8
test edi, edi
jge 0x5c96c8
mov eax, dword [esp + 0x20]
mov edi, ebp
mov dword [esp + 0x78], eax
or ebp, 0xffffffff
jmp 0x5c96d1
test ebp, ebp
jge 0x5c96e9
test ecx, ecx
jl 0x5c96e9
mov eax, dword [esp + 0x1c]
test eax, eax
jge 0x5c96ed
mov eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
jmp 0x5c96ed
mov eax, dword [esp + 0x1c]
mov ecx, eax
xor ecx, edi
test ecx, 0xfffffffd
jne 0x5c970d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
cmp edx, ecx
jne 0x5c970d
mov dword [esp + 0x78], ecx
or edi, eax
jmp 0x5c9710
or edi, 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
and eax, 0xffff0000
cmp eax, 0x80010000
mov eax, dword [esp + 0x80]
jne 0x5c9795
test eax, eax
je 0x5c974c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
add ecx, 3
lea eax, [edx + eax + 3]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jmp 0x5c977d
mov ecx, dword [esp + 0x10]
mov byte [ecx], 0x78
mov eax, dword [esp + 0x10]
mov edx, eax
sub edx, ebx
sar edx, 8
mov byte [eax + 1], dl
mov eax, dword [esp + 0x10]
mov cl, al
sub cl, bl
mov byte [eax + 2], cl
mov eax, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x4c], eax
add eax, 3
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
and ecx, 0xffff
add edx, 4
mov dword [esp + 0x14], edx
jmp 0x5c95ed
test eax, eax
jne 0x5c97ba
mov ecx, dword [esp + 0x10]
sub ecx, ebx
xor eax, eax
mov edx, ecx
mov ah, byte [ebx + 1]
mov al, byte [ebx + 2]
mov byte [ebx + 2], cl
shr edx, 8
mov byte [ebx + 1], dl
sub ebx, eax
test eax, eax
mov ecx, eax
ja 0x5c979f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 0x79
mov eax, dword [esp + 0x10]
mov edx, eax
sub edx, ecx
sar edx, 8
mov byte [eax + 1], dl
mov eax, dword [esp + 0x10]
mov dl, al
sub dl, cl
mov byte [eax + 2], dl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
add ecx, 3
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x5c97fd
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx]
mov dword [eax + 0x60], edx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
mov dword [ecx], edx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov dword [eax], ebp
mov eax, dword [esp + 0x74]
mov dword [ecx], edx
mov edx, dword [esp + 0x80]
test edx, edx
mov dword [eax], edi
je 0x5c9865
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
mov esi, 0x7fffffeb
sub esi, eax
cmp esi, ecx
jae 0x5c9861
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword [ecx], 0x78
xor eax, eax
pop ebx
add esp, 0x40
ret
add eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret