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

Disassembly:
mov eax, 0x6a9667
call fcn.0067aec0
sub esp, 0x118
push ebx
mov ebx, ecx
push esi
push edi
inc dword [ebx + 0x14]
xor edi, edi
cmp dword [ebx + 0x164], 1
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
jne 0x5c5a2d
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.005cac6a
mov esi, dword [eax]
lea ecx, [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call fcn.005c61fa
mov al, byte [ebp + 0xf]
mov dword [ebp - 4], edi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xcc], edi
mov byte [ebp - 0x74], al
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
cmp esi, edi
mov byte [ebp - 4], 1
jle 0x5c59d8
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x74]
push eax
call fcn.005cc6ba
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x114]
push eax
mov dword [ebp - 0x14], edi
call fcn.00436087
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xf4]
push eax
mov dword [ebp - 0x14], edi
call fcn.00436087
dec esi
jne 0x5c59a2
mov esi, dword [ebp - 0x1c]
cmp esi, edi
jle 0x5c5a03
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x124]
push eax
call fcn.005cc2fb
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x104]
push eax
mov dword [ebp - 0x14], edi
call fcn.00436087
dec esi
jne 0x5c59df
lea eax, [ebp - 0x124]
lea ecx, [ebx + 4]
push eax
call fcn.005cc4c5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.005cc69a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.005c623f
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
shl eax, 6
add ecx, eax
mov dword [ebp - 0xbc], eax
push ecx
lea ecx, [ebp - 0xb4]
call fcn.005c628f
cmp dword [ebp - 0xa0], edi
mov dword [ebp - 4], 2
jne 0x5c5a5e
mov dword [ebp - 0x20], edi
jmp 0x5c5a70
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa0]
sar eax, 2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x90], edi
jne 0x5c5a7d
mov dword [ebp - 0x1c], edi
jmp 0x5c5a8f
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
sar eax, 2
mov dword [ebp - 0x1c], eax
lea esi, [ebx + 0x3c]
push str.table
mov ecx, esi
call fcn.006791c8
push edi
mov ecx, ebx
call fcn.005c8816
mov eax, dword [esi]
push esi
push eax
mov ecx, ebx
call fcn.005c87ed
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xc8], edi
call fcn.006791ce
lea eax, [ebp - 0xc8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.005ca38c
lea ecx, [ebp - 0x14]
call fcn.006791bc
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.005ca551
push 1
lea eax, [ebp - 0x64]
push esi
push eax
lea eax, [ebp - 0x6c]
mov ecx, ebx
push eax
mov byte [ebp - 4], 4
call fcn.005cafcc
mov ecx, ebx
call fcn.005c89e4
cmp dword [ebx + 0x164], 1
je 0x5c5ca8
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0xa0]
cmp edx, edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
jne 0x5c5b3c
xor eax, eax
jmp 0x5c5b47
mov eax, dword [ebp - 0x9c]
sub eax, edx
sar eax, 2
mov ecx, dword [ebx + 0xa8]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp edx, edi
je 0x5c5b7a
mov esi, dword [ebp - 0x9c]
sub esi, edx
sar esi, 2
cmp eax, esi
jae 0x5c5b7a
mov edx, dword [edx + eax*4]
add edx, ecx
add dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xa0]
inc eax
jmp 0x5c5b56
mov edx, dword [ebp - 0x90]
cmp edx, edi
jne 0x5c5b88
xor eax, eax
jmp 0x5c5b93
mov eax, dword [ebp - 0x8c]
sub eax, edx
sar eax, 2
mov esi, dword [ebp - 0x2c]
add eax, ecx
lea eax, [esi + eax - 1]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp edx, edi
je 0x5c5bc5
mov esi, dword [ebp - 0x8c]
sub esi, edx
sar esi, 2
cmp eax, esi
jae 0x5c5bc5
mov edx, dword [edx + eax*4]
add edx, ecx
add dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x90]
inc eax
jmp 0x5c5ba1
cmp dword [ebx + 0x88], 6
jne 0x5c5bd8
add dword [ebp - 0x10], 6
add dword [ebp - 0x2c], 6
jmp 0x5c5be6
mov eax, dword [ebx + 0x8c]
shl eax, 1
add dword [ebp - 0x10], eax
add dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 8]
sub edx, dword [eax]
cmp dword [ebp - 0x10], edx
mov dword [ebp - 0x28], edx
jge 0x5c5c9d
mov esi, edx
mov dword [ebp - 0x24], edi
sub esi, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x80]
cmp eax, edi
je 0x5c5c28
mov edx, dword [ebp - 0x7c]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x5c5c25
cmp dword [eax + ecx*4], edi
jne 0x5c5c1f
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
inc ecx
jmp 0x5c5c04
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmp eax, edi
je 0x5c5c70
mov ecx, dword [ebp - 0x7c]
sub ecx, eax
sar ecx, 2
cmp dword [ebp - 0x18], ecx
jae 0x5c5c70
cmp dword [ebp - 0x24], edi
jle 0x5c5c70
mov ecx, dword [ebp - 0x18]
cmp dword [eax + ecx*4], edi
jne 0x5c5c6b
mov eax, esi
mov ecx, dword [ebp - 0xa0]
cdq
idiv dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
lea ecx, [ecx + edx*4]
mov edx, dword [ebp - 0x28]
add dword [ecx], eax
sub esi, eax
dec dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x80]
inc dword [ebp - 0x18]
jmp 0x5c5c2b
cmp dword [ebp - 0x10], edx
jge 0x5c5c9d
mov eax, dword [ebx + 0x80]
dec eax
je 0x5c5c8f
dec eax
jne 0x5c5c9d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
jmp 0x5c5c9d
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [ebx + 0x164], edi
jne 0x5c5d5c
mov eax, dword [ebx + 0x78]
cmp eax, edi
jl 0x5c5cdf
push edi
push 5
push dword [ebx + 0x70]
lea ecx, [ebp - 0x38]
push dword [ebx + 0x6c]
push dword [ebx + 0x60]
push ecx
push eax
push dword [ebx + 0x15c]
lea ecx, [ebx + 0xd0]
call fcn.005c238e
jmp 0x5c5d17
mov ecx, dword [ebx + 0x7c]
lea eax, [ebx + 0x7c]
cmp dword [ecx - 8], edi
je 0x5c5d17
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.006791c2
mov eax, dword [ebp - 0x2c]
mov ecx, ebx
sub eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebx + 0x15c]
call fcn.005cbbf1
mov ecx, dword [ebx + 0x8c]
cmp ecx, edi
jle 0x5c5d5c
cmp dword [ebx + 0x144], edi
je 0x5c5d38
push ecx
push dword [ebx + 0x88]
push dword [ebx + 0x68]
push dword [ebx + 0x64]
jmp 0x5c5d47
mov eax, dword [ebx + 0x148]
push ecx
push dword [ebx + 0x88]
push eax
push eax
lea eax, [ebp - 0x38]
lea ecx, [ebx + 0xd0]
push eax
push dword [ebx + 0x15c]
call fcn.005c3347
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x164], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x5c5da6
cmp dword [ebx + 0x88], 6
jne 0x5c5d8f
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x58], 3
sub dword [ebp - 0x54], 3
add eax, 3
sub dword [ebp - 0x50], 3
mov dword [ebp - 0x5c], eax
jmp 0x5c5da6
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebp - 0x38]
add dword [ebp - 0x58], eax
sub dword [ebp - 0x54], eax
add ecx, eax
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x20], 0
je 0x5c5eb2
cmp dword [ebp - 0x1c], 0
je 0x5c5eb2
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc0]
call fcn.006791ce
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.006791ce
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.006791ce
xor esi, esi
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], esi
jle 0x5c5e88
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push 0x755ffc
call fcn.006791d4
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push dword [ebp + 0xc]
call fcn.005ca842
test eax, eax
je 0x5c5e7e
mov eax, dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.005cae73
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xb8]
push dword [ebp - 0x18]
push eax
call fcn.00679528
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.006791e0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call fcn.006791bc
lea eax, [ebp - 0xb4]
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.005c6325
mov eax, dword [ebp - 0x28]
add eax, 5
mov dword [ebp - 0x18], eax
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x5c5df3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.006791bc
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.006791bc
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.006791bc
cmp dword [ebx + 0x164], 0
je 0x5c616e
push 1
pop ecx
cmp dword [ebp - 0x20], ecx
mov dword [ebp + 0xc], ecx
jl 0x5c5ff9
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x5c5fea
and dword [ebp - 0x40], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x40]
add eax, ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x5c5fda
mov ecx, dword [ebp + 0xc]
and dword [ebp + 0x10], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], eax
shl ecx, 2
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
add eax, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
jne 0x5c5fc5
cmp ecx, 1
jne 0x5c5f55
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp + 0x10]
mov esi, dword [eax + 0x10]
add ecx, edx
mov edx, dword [ecx]
cmp edx, esi
jg 0x5c5f3e
mov edx, esi
mov dword [ecx], edx
cmp dword [eax + 0x18], 0
je 0x5c5fc5
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + eax], 1
jmp 0x5c5fc5
xor edx, edx
cmp dword [ebp + 0xc], edx
jle 0x5c5f81
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0xa0]
add edx, dword [ecx + edi]
cmp dword [eax + 0x18], 0
je 0x5c5f7b
mov edi, dword [ebp - 0x80]
mov dword [ecx + edi], 1
add ecx, 4
dec esi
jne 0x5c5f62
cmp edx, dword [eax + 8]
jge 0x5c5fc5
mov esi, dword [eax + 0x10]
mov ecx, dword [ebp - 0x3c]
sub esi, edx
mov eax, esi
cdq
idiv dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebp - 0xa0]
lea ecx, [ecx + eax - 4]
mov eax, esi
cdq
idiv dword [ebp + 0xc]
add dword [ecx], edx
cmp dword [ebp + 0xc], 0
jle 0x5c5fc5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xa0]
add dword [eax + ecx], edi
add eax, ecx
add ecx, 4
dec edx
jne 0x5c5fb4
add dword [ebp - 0x10], 0x1c
add dword [ebp + 0x10], 4
add dword [ebp - 0x3c], 4
dec dword [ebp - 0x4c]
jne 0x5c5f0d
add dword [ebp - 0x40], 0x10
dec dword [ebp - 0x14]
jne 0x5c5ee0
push 1
pop ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x20]
jle 0x5c5ece
cmp dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], ecx
jl 0x5c6105
and dword [ebp + 0x10], 0
cmp dword [ebp - 0x1c], 0
jle 0x5c60f6
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x3c]
add eax, ecx
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x68], eax
jle 0x5c60e3
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x40]
add ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [ecx + 4], eax
jne 0x5c60d6
mov esi, eax
cmp esi, 1
jne 0x5c6072
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [eax]
cmp edx, ecx
jle 0x5c606e
mov ecx, edx
mov dword [eax], ecx
jmp 0x5c60d6
xor eax, eax
test esi, esi
jle 0x5c608c
mov edx, dword [ebp - 0x90]
mov edi, dword [ebp + 0x10]
lea edx, [edx + edi*4]
add eax, dword [edx]
add edx, 4
dec esi
jne 0x5c6084
mov ecx, dword [ecx + 0x14]
cmp eax, ecx
jge 0x5c60d6
mov edi, ecx
sub edi, eax
mov eax, edi
cdq
idiv dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp - 0x90]
shl esi, 2
lea ecx, [eax + esi]
mov eax, edi
cdq
idiv dword [ebp + 0xc]
add dword [ecx], edx
cmp dword [ebp + 0xc], 0
jle 0x5c60d6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x4c]
add dword [eax + esi], edx
add eax, esi
add esi, 4
dec ecx
jne 0x5c60c2
add dword [ebp - 0x40], 0x1c
dec dword [ebp - 0x14]
jne 0x5c6039
inc dword [ebp + 0x10]
add dword [ebp - 0x3c], 0x10
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x5c6017
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x1c]
jle 0x5c6005
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea edx, [eax + esi - 1]
test ecx, ecx
lea edi, [eax + ecx - 1]
mov dword [ebp - 0x44], edx
jle 0x5c6137
mov edx, dword [ebp - 0xa0]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edx]
add edx, 4
add ecx, eax
add edi, ecx
dec dword [ebp + 0xc]
jne 0x5c6129
test esi, esi
jle 0x5c6153
mov ecx, dword [ebp - 0x90]
mov dword [ebp + 0xc], esi
mov edx, dword [ecx]
add ecx, 4
add edx, eax
add dword [ebp - 0x44], edx
dec dword [ebp + 0xc]
jne 0x5c6144
cmp dword [ebx + 0x88], 6
mov eax, dword [ebx + 0x8c]
jne 0x5c6165
lea eax, [eax + eax*2]
shl eax, 1
add edi, eax
add dword [ebp - 0x44], eax
jmp 0x5c617d
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x38]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, eax
call fcn.005c62ec
push str.table
lea ecx, [ebx + 0x3c]
call fcn.006791c8
push 1
mov ecx, ebx
call fcn.005c8816
test eax, eax
je 0x5c61b5
mov ecx, ebx
call fcn.005c89e4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
mov dword [esi], edi
mov dword [esi + 4], eax
call fcn.006791bc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.006791bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.005c623f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc