Function at 0x5c5c70
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4518
call fcn.00450100
push ebx
push ebp
mov ebp, dword [esp + 0x4530]
push esi
xor ebx, ebx
xor esi, esi
or eax, 0xffffffff
cmp ebp, ebx
push edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ebx
je 0x5c69d1
mov eax, dword [esp + 0x453c]
cmp eax, ebx
je 0x5c69d1
mov dword [ebp], 0x64
mov dword [eax], ebx
cmp dword [esp + 0x452c], ebx
jne 0x5c5cf1
pop edi
mov dword [ebp], 0x74
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4518
ret
mov edi, dword [esp + 0x4540]
cmp edi, ebx
jne 0x5c5d08
mov edi, 0x729e38
mov dword [esp + 0x4540], edi
mov ecx, dword [esp + 0x4534]
test ecx, 0x4000000
je 0x5c5d24
or ecx, 0x80000
mov dword [esp + 0x4534], ecx
test ecx, 0x18000000
jne 0x5c69ca
mov edx, dword [edi + 0x24]
test edx, 0xffffffc0
jne 0x5c69ca
mov eax, ecx
and eax, 0x2000000
mov dword [esp + 0x24], eax
je 0x5c5d70
test ecx, 0x1976fef3
jne 0x5c5d5c
test edx, 0xfffffff3
je 0x5c5d70
pop edi
mov dword [ebp], 0xc0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4518
ret
mov eax, dword [esp + 0x4530]
cmp eax, 0xffffffff
jne 0x5c5d9a
mov eax, dword [esp + 0x452c]
push eax
call fcn.005d4880
mov ecx, dword [esp + 0x4538]
add esp, 4
mov dword [esp + 0x4530], eax
cmp eax, dword [edi + 0x18]
jbe 0x5c5db3
pop edi
mov dword [ebp], 0xbc
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4518
ret
mov eax, dword [edi + 0x14]
cmp eax, ebx
mov dword [esp + 0x4c], eax
jne 0x5c5dc6
mov dword [esp + 0x4c], 0x72a00c
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x248]
lea edx, [eax + 0x100]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x64], edx
lea edx, [eax + 0x200]
add eax, 0x340
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x452c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4540]
lea ecx, [esp + 0x648]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4530]
add eax, edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x158]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x1648]
lea ecx, [esp + 0x1648]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov ecx, 0xa
or eax, 0xffffffff
lea edi, [esp + 0x88]
mov word [esp + 0xba], bx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x100], ebx
mov word [esp + 0xb6], bx
mov dword [esp + 0x80], ebx
mov dword [esp + 0xc4], 0x14
mov word [esp + 0xb4], bx
mov dword [esp + 0xbc], ebx
mov word [esp + 0xb8], bx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x78], edx
mov dword [esp + 0x84], 0x1770
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
xor ebp, ebp
rep stosd dword es:[edi], eax
cmp dword [esp + 0x24], ebx
jne 0x5c6085
cmp dword [esp + 0x4530], 2
jb 0x5c6085
cmp byte [edx + ebp], 0x28
jne 0x5c6085
cmp byte [edx + ebp + 1], 0x2a
jne 0x5c6085
mov edx, dword [esp + 0x4530]
mov dword [esp + 0x14], ebx
sub edx, ebp
mov edi, 0x780798
add edx, 0xfffffffe
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ax, word [edi + 4]
cmp ecx, eax
jb 0x5c5f62
mov ecx, dword [esp + 0x452c]
push eax
mov eax, dword [edi]
lea edx, [ecx + ebp + 2]
push eax
push edx
call fcn.005d4850
add esp, 0xc
test eax, eax
je 0x5c5f7c
mov edx, dword [esp + 0x14]
add edi, 0xc
inc edx
cmp edi, str.BSR_UNICODE_
mov dword [esp + 0x14], edx
jae 0x5c6085
jmp 0x5c5f38
mov dx, word [edi + 6]
xor eax, eax
mov ax, word [edi + 4]
lea ebp, [eax + ebp + 2]
mov eax, edx
and eax, 0xffff
cmp eax, 6
ja case.default.0x5c5f9a
jmp dword [eax*4 + 0x5c69e0]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0xc8]
or eax, ecx
mov dword [esp + 0xc8], eax
jmp case.default.0x5c5f9a
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x18]
or eax, edx
mov dword [esp + 0x18], eax
jmp case.default.0x5c5f9a
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
or ah, 0x80
mov dword [esp + 0x18], eax
jmp case.default.0x5c5f9a
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 8]
or ah, 0x40
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], eax
jmp case.default.0x5c5f9a
mov edi, dword [esp + 0x452c]
xor eax, eax
mov cl, byte [edi + ebp]
cmp cl, 0x30
jb 0x5c6071
cmp cl, 0x39
ja 0x5c6071
cmp cl, 0x39
ja 0x5c602b
cmp eax, 0x19999998
ja 0x5c602b
lea eax, [eax + eax*4]
and ecx, 0xff
inc ebp
lea eax, [ecx + eax*2 - 0x30]
mov cl, byte [edi + ebp]
cmp cl, 0x30
jae 0x5c6009
mov cl, byte [edi + ebp]
inc ebp
cmp cl, 0x29
jne 0x5c6071
cmp dx, 4
jne 0x5c6040
mov dword [esp + 0x58], eax
jmp case.default.0x5c5f9a
cmp dx, 5
jne 0x5c604c
mov dword [esp + 0x50], eax
jmp case.default.0x5c5f9a
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], 0x15
jae 0x5c6085
mov edx, dword [esp + 0x4530]
sub edx, ebp
cmp edx, 2
jb 0x5c6085
mov edx, dword [esp + 0x452c]
jmp 0x5c5f0a
mov eax, 0xa0
add ebp, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jmp 0x5c693d
mov eax, dword [esp + 0x452c]
lea ecx, [eax + ebp]
mov eax, dword [esp + 0xc8]
test eax, 0xa0000
mov dword [esp + 0x14], ecx
je 0x5c60ab
mov eax, 0x84
jmp 0x5c6932
shr eax, 0x13
and eax, 1
mov dword [esp + 0x38], eax
je 0x5c6100
mov eax, dword [esp + 0x4534]
test ah, 0x10
je 0x5c60cd
mov eax, 0xae
jmp 0x5c6932
test eax, 0x40000000
jne 0x5c6100
mov edx, dword [esp + 0x453c]
mov eax, dword [esp + 0x4530]
mov ecx, dword [esp + 0x452c]
push edx
push eax
push ecx
call fcn.006b9b30
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x5c694c
mov ecx, dword [esp + 0xc8]
mov edx, 1
mov eax, ecx
shr eax, 0x11
and eax, edx
mov dword [esp + 0x24], eax
je 0x5c6128
test ch, 8
je 0x5c6128
mov eax, 0xaf
jmp 0x5c6932
cmp dword [esp + 0x40], ebx
jne 0x5c6141
mov ecx, dword [esp + 0x4540]
xor eax, eax
mov ax, word [ecx + 0x1c]
mov dword [esp + 0x40], eax
jmp 0x5c6148
mov ecx, dword [esp + 0x4540]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x5c615a
xor eax, eax
mov ax, word [ecx + 0x1e]
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0xec], ebx
cmp eax, 5
ja case.default.0x5c616b
jmp dword [eax*4 + 0x5c69fc]
mov dword [esp + 0xf0], edx
mov byte [esp + 0xfc], 0xd
jmp 0x5c61d5
mov dword [esp + 0xf0], edx
mov byte [esp + 0xfc], 0xa
jmp 0x5c61d5
mov dword [esp + 0xf0], edx
mov byte [esp + 0xfc], bl
jmp 0x5c61d5
mov dword [esp + 0xf0], 2
mov byte [esp + 0xfc], 0xd
mov byte [esp + 0xfd], 0xa
jmp 0x5c61d5
mov dword [esp + 0xec], edx
jmp 0x5c61d5
mov dword [esp + 0xec], 2
mov edi, dword [esp + 0x4530]
mov al, byte [ecx + 0x24]
sub edi, ebp
test al, 0xc
je 0x5c61e8
add edi, 4
test byte [esp + 0x4534], 4
je 0x5c61f6
lea edi, [edi + edi*4 + 5]
cmp edi, 0x400
jb 0x5c622c
mov edx, dword [ecx + 8]
lea eax, [edi*4 + 4]
push edx
push eax
call dword [ecx]
add esp, 8
cmp eax, ebx
jne 0x5c6225
mov ecx, dword [esp + 0x4538]
mov dword [ecx], 0x79
jmp 0x5c6960
mov dword [esp + 0xd8], eax
mov edx, dword [esp + 0xd8]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [edx + edi*4 + 4]
lea edx, [esp + 0x58]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xcc]
push edx
push eax
push ecx
call fcn.005c6a20
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x5c68f8
mov eax, dword [esp + 0xd0]
cmp eax, 0x100
jb 0x5c62c9
mov ecx, dword [esp + 0x4540]
lea eax, [eax*4 + 4]
mov edx, dword [ecx + 8]
push edx
push eax
call dword [ecx]
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0xe0], edi
jne 0x5c62c0
mov ecx, dword [esp + 0x452c]
mov edx, ebx
mov eax, 0x79
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x14], edx
jmp 0x5c6936
mov eax, dword [esp + 0xd0]
jmp 0x5c62d0
mov edi, dword [esp + 0xe0]
lea ecx, [eax*4 + 4]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x54], ebx
je 0x5c6310
mov ecx, dword [esp + 0xd8]
lea eax, [esp + 0x5c]
push eax
push ebx
push ebx
push ecx
call fcn.005cca60
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x5c68f8
mov edx, dword [esp + 0x4530]
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xb0], edx
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x1648]
lea edx, [esp + 0x48]
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x64]
push edx
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
mov byte [esp + 0x1678], 0x86
call fcn.005c94d0
mov eax, dword [esp + 0x40]
add esp, 0x30
cmp eax, ebx
jne 0x5c68f8
mov eax, dword [esp + 0x48]
cmp eax, 0x10000
jbe 0x5c639c
mov eax, 0x78
jmp 0x5c68f4
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb6]
and ecx, 0xffff
and edx, 0xffff
imul ecx, edx
lea eax, [ecx + eax + 0x70]
mov ecx, dword [esp + 0x4540]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 8]
push edx
push eax
call dword [ecx]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5c63e2
mov eax, 0x79
jmp 0x5c68f4
mov edx, dword [esp + 0x4540]
lea ebp, [esi + 0x68]
mov ecx, ebp
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, edx
mov ecx, esi
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
lea edi, [esi + 0x14]
mov eax, dword [eax + 8]
mov dword [esi + 0x10], ebx
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xc], ecx
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4534]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x50435245
mov dword [esi + 0x3c], ecx
mov eax, dword [esp + 0xc8]
mov dword [esi + 0x40], eax
mov ecx, dword [edx + 0x24]
mov eax, dword [esp + 0x58]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x18]
or edx, ecx
mov ecx, dword [esp + 0x50]
or edx, 1
mov dword [esi + 0x4c], eax
mov ax, word [esp + 0x40]
mov dword [esi + 0x48], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x50], ecx
mov cx, word [esp + 0x1c]
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov word [esi + 0x60], ax
mov word [esi + 0x62], cx
mov word [esi + 0x64], bx
mov word [esi + 0x66], bx
mov word [ebp], bx
mov word [esi + 0x6a], bx
mov dx, word [esp + 0xb6]
xor ecx, ecx
mov word [esi + 0x6c], dx
mov ax, word [esp + 0xb4]
mov word [esi + 0x6e], ax
mov eax, dword [esp + 0xb4]
and eax, 0xffff
mov cx, dx
imul ecx, eax
cmp word [esp + 0xb4], bx
lea edx, [esi + 0x70]
lea ecx, [ecx + esi + 0x70]
mov word [esp + 0xb8], bx
mov dword [esp + 0x18], ecx
mov word [esp + 0xba], bx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0xbc], ebx
jbe 0x5c6569
cmp eax, ebx
mov dword [esp + 0x14], ebx
jbe 0x5c6569
mov eax, dword [esp + 0xc0]
lea edi, [eax + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi - 4]
xor eax, eax
push ecx
mov ax, word [edi]
mov ecx, dword [edi - 8]
push edx
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.005cc990
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc8]
add esp, 0x14
inc eax
and ecx, 0xffff
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x5c6528
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], edx
lea eax, [esp + 0x5c]
mov byte [ecx], 0x86
push ebx
push eax
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x64]
push edx
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call fcn.005c94d0
add esp, 0x30
test eax, eax
jge 0x5c65bf
mov eax, dword [esi + 0x48]
or ah, 0x20
mov dword [esi + 0x48], eax
mov ax, word [esp + 0xd0]
mov word [ebp], ax
mov cx, word [esp + 0xe4]
mov word [esi + 0x6a], cx
mov dx, word [esp + 0x100]
mov word [esi + 0x64], dx
mov eax, dword [esp + 0x108]
cmp eax, ebx
je 0x5c6601
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0xffffffff
or dword [esi + 0x48], 0x800000
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov byte [eax], bl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
inc eax
mov dword [esp + 0x20], eax
sub eax, edx
cmp eax, ecx
jbe 0x5c6628
mov eax, 0x7b
jmp 0x5c68f4
mov edi, dword [esi + 0x34]
sub eax, ecx
add edi, eax
mov dword [esi + 0x34], edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x5c68f8
cmp dword [esp + 0x110], ebx
je 0x5c674e
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
push ecx
push edx
mov dword [esp + 0x24], 8
call fcn.005cc6e0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x5c6742
xor edx, edx
mov eax, dword [esp + 0x18]
mov dh, byte [edi + 1]
mov dl, byte [edi + 2]
mov ebp, edx
cmp ebp, ebx
je 0x5c6714
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
cmp edx, ebx
jbe 0x5c66c9
mov edx, dword [esp + eax*8 + 0x11c]
cmp ebp, edx
je 0x5c66be
jle 0x5c66af
mov edx, dword [esp + eax*8 + 0x118]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
inc ecx
inc eax
and eax, 7
cmp ecx, edx
jb 0x5c6697
jmp 0x5c66c9
mov eax, dword [esp + eax*8 + 0x118]
cmp eax, ebx
jne 0x5c6714
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebp
push eax
push ecx
call fcn.005d46c0
add esp, 0xc
cmp eax, ebx
je 0x5c6776
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jns 0x5c66f8
mov ecx, 7
mov dword [esp + 0x1c], ecx
mov dword [esp + ecx*8 + 0x11c], ebp
mov dword [esp + ecx*8 + 0x118], eax
mov ecx, dword [esp + 0x14]
cmp ecx, 8
jae 0x5c6714
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov edx, eax
sub edx, ecx
sub al, cl
sar edx, 8
mov byte [edi + 2], al
mov eax, dword [esp + 0x38]
mov byte [edi + 1], dl
add edi, 3
push eax
push edi
call fcn.005cc6e0
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x5c666f
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x5c68f8
mov eax, dword [esi + 0x40]
test ah, 0x40
jne 0x5c678c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.005d3800
add esp, 8
test eax, eax
je 0x5c6780
mov eax, 0xb4
jmp 0x5c68f4
mov eax, 0x99
jmp 0x5c68f4
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x5c68f8
mov eax, dword [esi + 0x40]
mov edi, SysReAllocString
test edi, eax
jne 0x5c67b4
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x60]
push ebx
push eax
push ebx
push ecx
call fcn.005cc190
add esp, 0x14
test eax, eax
je 0x5c67b4
or dword [esi + 0x40], edi
test dword [esi + 0x40], 0x10000
jne 0x5c6960
mov eax, dword [esp + 0x28]
xor ebp, ebp
cmp eax, ebx
jge 0x5c67ea
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push ebx
push edx
push eax
call fcn.005cc7d0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, ebx
jl 0x5c683c
mov ecx, dword [esp + 0x30]
mov ebp, 1
mov dword [esi + 0x58], ecx
mov ecx, dword [esi + 0x48]
or ecx, 0x10
mov dword [esi + 0x48], ecx
mov al, byte [esp + 0x28]
test al, 1
mov edi, ecx
je 0x5c6863
mov eax, dword [esp + 0x30]
cmp eax, 0x80
jb 0x5c6827
cmp dword [esp + 0x38], ebx
jne 0x5c6863
cmp dword [esp + 0x24], ebx
jne 0x5c6863
cmp eax, 0xff
jae 0x5c6863
mov ecx, dword [esp + 0x64]
xor edx, edx
mov dl, byte [eax + ecx]
cmp edx, eax
je 0x5c6863
or edi, 0x20
mov dword [esi + 0x48], edi
jmp 0x5c6863
test dword [esi + 0x40], edi
jne 0x5c6863
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x60]
push ebx
push edx
push ebx
push eax
call fcn.005cc4e0
add esp, 0x14
test eax, eax
je 0x5c6863
mov eax, dword [esi + 0x48]
or ah, 2
mov dword [esi + 0x48], eax
cmp dword [esp + 0x2c], ebx
jl 0x5c68e2
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x3c]
test eax, 0x80000
je 0x5c6889
cmp dword [esp + 0x28], ebx
jl 0x5c6889
test byte [esp + 0x30], 0x80
je 0x5c6889
test cl, 0x80
jne 0x5c688a
inc ebp
test eax, 0x80000000
je 0x5c6898
test byte [esp + 0x2c], 2
je 0x5c68e2
mov edx, dword [esi + 0x48]
mov dword [esi + 0x5c], ecx
or dl, 0x80
mov dword [esi + 0x48], edx
mov cl, byte [esp + 0x2c]
test cl, 1
mov eax, edx
je 0x5c68e2
mov edi, dword [esp + 0x3c]
cmp edi, 0x80
jb 0x5c68cf
cmp dword [esp + 0x38], ebx
jne 0x5c68e2
cmp dword [esp + 0x24], ebx
jne 0x5c68e2
cmp edi, 0xff
jae 0x5c68e2
mov edx, dword [esp + 0x64]
xor ecx, ecx
mov cl, byte [edi + edx]
cmp ecx, edi
je 0x5c68e2
or ah, 1
mov dword [esi + 0x48], eax
push esi
call fcn.005d25d0
add esp, 4
test eax, eax
je 0x5c690e
mov eax, 0x83
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x452c]
mov edx, dword [esp + 0xb0]
add edx, ecx
mov dword [esp + 0x14], edx
jmp 0x5c6936
test byte [esi + 0x48], 0x40
je 0x5c691d
cmp ebp, ebx
jne 0x5c691d
mov ebp, 1
xor eax, eax
mov ax, word [esi + 0x66]
cmp eax, ebp
jge 0x5c6960
mov word [esi + 0x66], bp
jmp 0x5c6960
mov eax, 0x9c
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x452c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x453c]
sub ecx, edi
mov dword [edx], ecx
mov ecx, dword [esp + 0x4538]
push esi
mov dword [ecx], eax
call fcn.005c5160
add esp, 4
xor esi, esi
mov eax, dword [esp + 0xd8]
mov edi, dword [esp + 0x4540]
lea edx, [esp + 0x648]
cmp eax, edx
je 0x5c6984
mov ecx, dword [edi + 8]
push ecx
push eax
call dword [edi + 4]
add esp, 8
cmp dword [esp + 0xc4], 0x14
jbe 0x5c69a0
mov edx, dword [edi + 8]
mov eax, dword [esp + 0xc0]
push edx
push eax
call dword [edi + 4]
add esp, 8
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x248]
cmp eax, ecx
je 0x5c69bd
mov edx, dword [edi + 8]
push edx
push eax
call dword [edi + 4]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4518
ret
mov dword [ebp], 0x75
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4518
ret