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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0xd8]
mov ecx, 1
test eax, eax
mov dword [esp + 0x94], 0
mov edx, 0x20
mov dword [esp + 0x90], 0
cmovns ecx, eax
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0xdc]
test eax, eax
mov dword [esp + 0x2c], ecx
mov ecx, edx
cmovne ecx, eax
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0xe0]
test eax, eax
cmovne edx, eax
mov dword [esp + 0xa8], ecx
mov eax, dword [esp + 0xe8]
mov ecx, 0x800
test eax, eax
mov dword [esp + 0xa4], edx
cmovne ecx, eax
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0xbc]
xor ebx, ebx
mov esi, dword [esp + 0xc8]
push dword [esp + 0xd0]
mov edi, dword [esp + 0xe8]
push dword [esp + 0xd0]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xc0]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xc8]
mov ebp, ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x3c], 1
mov dword [esi + 0xb4], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ebx
call fcn.005ce530
add esp, 0xc
test eax, eax
jne 0x5cdd0c
mov eax, dword [esp + 0xec]
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5cdbda
mov dword [esi + 0xc], eax
test edi, edi
je 0x5cdbe1
mov dword [esi + 0x10], edi
push 0
push 0
lea eax, [esp + 0x38]
push esi
push eax
call fcn.005cd890
add esp, 0x10
test eax, eax
jne 0x5cdd0c
cmp dword [esp + 0x34], ebx
jbe 0x5cdccd
mov edi, dword [esp + 0x38]
nop dword [eax]
mov ecx, dword [esp + 0x28]
mov eax, ebp
mov edx, dword [esp + 0x20]
sub eax, ecx
test ebx, ebx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
mov ebp, edi
cmove edx, dword [esp + 0x48]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
cmp edi, 2
jb 0x5cdc87
jne 0x5cdc5d
cmp eax, 0x400
ja 0x5cdc87
test ebx, ebx
je 0x5cdc87
cmp ebx, 4
jae 0x5cdc87
cmp dword [esp + 0x10], ecx
jmp 0x5cdd19
cmp dword [esp + 0x10], ecx
jne 0x5cdc67
test ebx, ebx
je 0x5cdc87
cmp edi, 3
jne 0x5cdd17
cmp dword [esp + 0x3c], 0xc00
jbe 0x5cdd1f
cmp ebx, 4
jb 0x5cdd1f
mov eax, dword [esp + 0x1c]
inc ebx
push 0
push 1
mov dword [esi + 0xc], eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.005cd890
mov ebp, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [esp + 0x38]
cmp dword [esp + 0x34], 0
ja 0x5cdc10
test ebx, ebx
je 0x5cdccd
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.005cd560
add esp, 0x10
mov ebp, eax
mov eax, dword [esp + 0xc4]
mov word [ebp], 0x11
add ebp, 2
mov byte [ebp], 0
sub ebp, dword [esp + 0x28]
lea ecx, [ebp + 1]
mov dword [eax], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
test eax, eax
je 0x5cdd0a
mov edx, dword [eax + 8]
test edx, edx
je 0x5cdd0a
push 0
push ecx
push dword [esp + 0x68]
push eax
call edx
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
test edi, edi
je 0x5cdc87
mov edi, dword [esp + 0xc8]
cmp dword [edi + 0x14], 0
je 0x5cdd4b
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.005cd610
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], eax
xor esi, esi
cmp dword [esp + 0x2c], esi
je 0x5cdea0
cmp ebp, dword [esp + 0xa4]
jae 0x5cdea0
push ebx
push eax
push ebp
call fcn.005cd970
mov dword [esp + 0xb8], eax
add esp, 0xc
dec eax
cmp dword [esp + 0x2c], eax
cmovbe eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
test eax, eax
je 0x5cdea0
nop
cmp dword [esp + 0x34], ebp
jbe 0x5cdea0
mov eax, dword [esp + 0x1c]
cmp ebp, dword [esp + 0xa8]
jb 0x5cddaa
shr eax, 2
push 0
push 1
mov dword [edi + 0xc], eax
lea eax, [esp + 0x38]
push edi
push eax
call fcn.005cd890
mov edi, dword [esp + 0x48]
add esp, 0x10
inc esi
cmp edi, ebp
jb 0x5cde8c
jne 0x5cdddc
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], eax
jae 0x5cde8c
mov eax, dword [esp + 0xc8]
cmp dword [eax + 0x14], 0
je 0x5cde00
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.005cd610
mov edi, dword [esp + 0x44]
add esp, 0xc
lea eax, [esi + ebx]
push eax
push dword [esp + 0x40]
mov dword [esp + 0x1c], eax
push edi
call fcn.005cd970
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x5cde8c
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x5cde2b
xor edx, edx
jmp 0x5cde3f
push ebx
push dword [esp + 0x1c]
push esi
call fcn.005cd970
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, esi
cmp ebx, 3
ja 0x5cde56
mov ecx, 3
cmp ecx, dword [esp + 0x14]
sbb ecx, ecx
and ecx, 2
jmp 0x5cde68
cmp ebx, 0x12
ja 0x5cde6a
mov ecx, 0x12
cmp ecx, dword [esp + 0x14]
sbb ecx, ecx
neg ecx
add ecx, esi
sub eax, dword [esp + 0xac]
lea ecx, [ecx + eax*2]
test edx, edx
je 0x5cde7f
mov eax, edx
sub eax, esi
lea ecx, [ecx + eax*2]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
add eax, ebp
cmp edi, eax
jae 0x5cdece
mov edi, dword [esp + 0xc8]
cmp esi, dword [esp + 0xb0]
jb 0x5cdd90
test ebx, ebx
je 0x5cdf4c
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x38]
push dword [esp + 0x18]
push eax
call fcn.005cd560
add esp, 0x10
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
jmp 0x5cdf63
inc dword [esp + 0x78]
test edx, edx
je 0x5cdf38
test ebx, ebx
je 0x5cdefd
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x38]
push dword [esp + 0x18]
push eax
call fcn.005cd560
add esp, 0x10
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
jmp 0x5cdf14
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
push dword [esp + 0x18]
xor ebx, ebx
push esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005cd6a0
mov esi, dword [esp + 0xd8]
mov ebp, eax
mov dword [esp + 0x20], ebp
jmp 0x5cdca2
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0x10]
jmp 0x5cdca9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
push dword [esp + 0x18]
xor ebx, ebx
push ebp
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005cd6a0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
lea eax, [esi + 1]
push eax
push ebp
lea eax, [esp + 0x48]
push edi
push eax
call fcn.005cd890
mov esi, dword [esp + 0xe8]
add esp, 0x20
mov ebp, dword [esp + 0x10]
jmp 0x5cdca5