Function at 0x5f7ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x74
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x124], 0xfffffffc
je 0x5fa260
and byte [ebx + 0x1ad], 0xfe
test byte [ebx + 0x1a9], 0x10
je 0x5f7f11
push ebx
call fcn.005fb560
add esp, 4
test eax, eax
jne 0x5f9443
and byte [ebx + 0x1a9], 0xef
mov eax, dword [ebx + 0x94]
test byte [ebx + 0x1a2], 0x40
je 0x5f7f63
test eax, eax
je 0x5f7f79
cmp byte [eax + 0x1c], 0
je 0x5f7f67
mov byte [ebp - 0x10], 0xa
mov edx, dword [eax + 0x10]
test edx, edx
push 1
jne 0x5f7f39
mov edx, ebx
lea eax, [ebp - 0x10]
push eax
push edx
call fcn.005e4630
add esp, 0xc
cmp eax, 0xffffffff
je 0x5f944b
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5f7f79
mov byte [eax + 0x1c], 0
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5f7f79
mov byte [eax + 0x1d], 0
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x5f7f79
mov byte [eax + 0x20], 0
movsx edx, byte [ebx + 0x18c]
cmp edx, 8
ja 0x5f89f4
movzx eax, word [edx*2 + 0x69a988]
add eax, 0x5f7f98
jmp eax
push 0xe6d
push 0x69a99c
push 2
push 8
call fcn.005b16e0
add esp, 0x10
mov eax, dword [ebx + 0x98]
xor esi, esi
mov dword [ebp - 0x50], eax
xor edi, edi
mov edx, dword [ebx + 0x160]
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0
cmp edi, dword [ebp - 0x48]
ja 0x5fa0d1
cmp edi, dword [ebp - 0x48]
ja 0x5f988e
cmp edi, 4
jne 0x5f8b2f
mov ecx, dword [ebx + 0x64]
test byte [ebx + 0x1a5], 0x20
movzx edx, byte [ecx + 1]
mov dword [ebp - 0x60], edx
movzx eax, byte [ecx]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
mov dword [ebp - 0x5c], ecx
je 0x5f8a86
shl edx, 8
or ecx, edx
mov edx, dword [ebp - 0x60]
shl edx, 0x10
shl eax, 0x18
or ecx, edx
or ecx, eax
mov dword [ebp - 0x5c], ecx
jmp 0x5f8a9e
mov ecx, dword [ebp - 0x60]
shl ecx, 8
shl edx, 0x10
or eax, ecx
or eax, edx
mov edx, dword [ebp - 0x5c]
shl edx, 0x18
or edx, eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jl 0x5f8ab0
movzx eax, byte [ebx + 0x1aa]
and eax, 0xffffffdf
jmp 0x5f8abd
movzx eax, byte [ebx + 0x1aa]
neg dword [ebp - 0x5c]
or eax, 0x20
mov byte [ebx + 0x1aa], al
mov eax, dword [ebp - 0x5c]
movzx edx, byte [ebx + 0x1ac]
and edx, 0xfffffffe
mov dword [ebx + 0x17c], eax
mov dword [ebp - 0x4c], edx
cmp dword [ebx + 0x164], 0xb
jne 0x5f8b25
and edx, 4
shr edx, 2
je 0x5f8b02
test byte [ebp - 0x4c], 0x40
je 0x5f8b02
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov byte [ebx + 0x1ac], al
jmp 0x5f8b8a
mov eax, dword [ebx + 0x168]
test eax, eax
jne 0x5f8b11
mov eax, 0x20000
cmp eax, dword [ebp - 0x5c]
jae 0x5f8b1a
test edx, edx
je 0x5f8af0
mov eax, dword [ebp - 0x4c]
mov byte [ebx + 0x1ac], al
jmp 0x5f8b8a
mov eax, edx
mov byte [ebx + 0x1ac], al
jmp 0x5f8b8a
cmp edi, 2
jne 0x5f8b77
mov eax, dword [ebx + 0x64]
movzx edx, byte [eax + 1]
shl edx, 8
movzx ecx, byte [eax]
or ecx, edx
movsx eax, cx
mov dword [ebp - 0x5c], eax
cmp eax, 1
je 0x5f98f6
movzx eax, byte [ebx + 0x1ac]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
and edx, reloc.WS2_32.dll_accept
jge 0x5f8b6e
sub edx, 1
or edx, 0xfffffffe
inc edx
xor eax, eax
cmp eax, edx
adc esi, 0
jmp 0x5f8b8a
mov eax, dword [ebx + 0x118]
movzx edx, byte [ebx + 0x1ac]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x5c]
lea eax, [esi + edx]
mov edx, dword [ebp - 0x4c]
and edx, 1
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x48]
jbe 0x5f9e3b
test edx, edx
jne 0x5f9e3b
test byte [ebx + 0x1a0], 1
jne 0x5f9c12
cmp dword [ebp - 0x54], 0
je 0x5f9c12
mov edx, eax
sub edx, esi
mov eax, dword [ebx + 0x10c]
mov dword [ebp - 0x60], edx
cmp edx, eax
jae 0x5f8bdf
test byte [ebx + 0x1a7], 0x40
je 0x5f9c12
cmp dword [ebp + 0xc], 0
je 0x5fa0c2
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + 1]
cmp edx, 5
je 0x5fa095
cmp edx, 7
je 0x5fa073
cmp dword [ebp - 0x50], 0
je 0x5f9c07
movzx eax, byte [ebx + 0x1aa]
not eax
mov edx, dword [ebp - 0x48]
and eax, 0x20
sub edx, edi
shr eax, 5
mov dword [ebp - 0x3c], eax
cmp edx, dword [ebp - 0x14]
jb 0x5f8c91
mov eax, dword [ebx + 0x64]
lea edx, [edi + eax]
cmp edx, dword [ebp - 0x50]
jb 0x5f8c44
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x14]
add ecx, esi
cmp ecx, edx
ja 0x5f8c51
cmp edx, dword [ebp - 0x50]
ja 0x5f8c5f
mov ecx, dword [ebp - 0x14]
lea esi, [edi + ecx]
add esi, eax
cmp esi, dword [ebp - 0x50]
jbe 0x5f8c5f
push dword [ebp - 0x14]
push edx
push dword [ebp - 0x50]
call fcn.00641fc0
jmp 0x5f8c6b
push dword [ebp - 0x14]
push edx
push dword [ebp - 0x50]
call fcn.0062a530
add esp, 0xc
mov eax, dword [ebx + 0xb0]
mov edx, dword [ebp - 0x14]
sub eax, edi
sub dword [ebx + 0x17c], edx
sub eax, edx
xor edx, edx
mov dword [ebx + 0xb0], eax
mov dword [ebp - 0x14], edx
jmp 0x5f8d19
mov ecx, dword [ebx + 0x64]
lea eax, [edi + ecx]
cmp eax, dword [ebp - 0x50]
jb 0x5f8cad
mov esi, dword [ebp - 0x50]
sub esi, edi
add esi, dword [ebp - 0x48]
cmp esi, eax
ja 0x5f8cb7
cmp eax, dword [ebp - 0x50]
ja 0x5f8cc3
mov esi, dword [ebp - 0x48]
add esi, ecx
cmp esi, dword [ebp - 0x50]
jbe 0x5f8cc3
push edx
push eax
push dword [ebp - 0x50]
call fcn.00641fc0
jmp 0x5f8ccd
push edx
push eax
push dword [ebp - 0x50]
call fcn.0062a530
add esp, 0xc
mov eax, dword [ebx + 0xb0]
mov ecx, eax
mov edx, dword [ebp - 0x60]
sub ecx, edi
mov esi, edx
sub esi, ecx
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x14]
sub esi, ecx
add eax, dword [ebx + 0x64]
add dword [ebp - 0x50], ecx
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0x64], 0
mov dword [ebp - 0x28], edx
test esi, esi
mov esi, dword [ebp - 0x48]
jg 0x5f929d
mov edx, 1
or byte [ebx + 0x1a7], 0x40
test edx, edx
je 0x5f8d33
mov eax, esi
add esi, edi
cdq
mov ecx, edx
adc ecx, 0
jmp 0x5f8e7a
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x4c]
mov dword [ebp - 0x44], eax
sub eax, edx
mov dword [ebp - 0x40], edx
cmp eax, dword [ebp - 0x38]
jg 0x5f8e6d
mov esi, dword [ebp - 0x38]
mov eax, esi
mov ecx, dword [ebp - 0x44]
cdq
mov eax, ecx
mov dword [ebp - 0x4c], edx
cdq
mov eax, dword [ebp - 0x40]
mov ebx, edx
cdq
sub ecx, eax
mov dword [ebp - 0x20], edi
sbb ebx, edx
sub esi, ecx
mov ecx, dword [ebp - 0x4c]
sbb ecx, ebx
mov ebx, dword [ebp + 8]
movzx edx, byte [eax]
mov dword [ebp - 0x54], edx
movzx edi, byte [ebx + 0x1a5]
and edi, 0x20
movzx edx, byte [eax + 2]
mov dword [ebp - 0x58], edx
movzx edx, byte [eax + 3]
mov dword [ebp - 0x60], edx
shr edi, 5
mov dword [ebp - 0x50], edi
movzx edi, byte [eax + 1]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x20]
je 0x5f8dbd
mov eax, dword [ebp - 0x58]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0x5c]
shl eax, 0x10
or edx, eax
mov eax, dword [ebp - 0x54]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x60], edx
jmp 0x5f8ddb
mov eax, dword [ebp - 0x5c]
shl eax, 8
mov edx, dword [ebp - 0x54]
or edx, eax
mov eax, dword [ebp - 0x58]
shl eax, 0x10
or edx, eax
mov eax, dword [ebp - 0x60]
shl eax, 0x18
or eax, edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cdq
add eax, 8
mov dword [ebp - 0x60], eax
adc edx, 0
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], edx
mov ebx, dword [ebp + 8]
sbb edx, dword [ebp - 0x4c]
jge 0x5f8e7a
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x48], esi
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x44]
jae 0x5f8e62
add edx, eax
add dword [ebp - 0x48], eax
mov dword [ebp - 0x40], edx
adc ecx, edi
movzx edi, byte [edx]
movzx esi, byte [edx + 1]
movzx ebx, byte [edx + 2]
movzx eax, byte [edx + 3]
cmp dword [ebp - 0x50], 0
je 0x5f8e3e
shl ebx, 8
shl esi, 0x10
or eax, ebx
shl edi, 0x18
or eax, esi
or eax, edi
jmp 0x5f8e4d
shl esi, 8
shl ebx, 0x10
or edi, esi
shl eax, 0x18
or edi, ebx
or eax, edi
cdq
add eax, 8
mov edi, edx
mov ebx, eax
adc edi, 0
sub ebx, dword [ebp - 0x38]
mov esi, edi
sbb esi, dword [ebp - 0x4c]
jl 0x5f8e06
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
jmp 0x5f8e7a
mov esi, dword [ebp - 0x38]
xor ecx, ecx
sub esi, edi
sub esi, dword [ebx + 0x160]
mov edx, 1
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x104]
mov dword [esp + 8], ecx
call fcn.005d74a0
mov ecx, eax
mov eax, 0xffffffff
sub ecx, eax
sub edx, eax
or ecx, edx
je 0x5f95e3
mov ecx, edi
lea eax, [ebx + 0xb0]
mov dword [ebp - 0x20], eax
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + 0x1a8]
and eax, 0x80
shr eax, 7
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x1a9]
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x16c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x104]
mov edx, dword [ebx + 0x4c]
mov dword [esp + 0x1c], ebx
call fcn.005fa29c
movzx edx, byte [ebx + 0x1a5]
cmp dword [ebp - 0x3c], 0
je 0x5f8f06
mov eax, dword [ebx + 0x4c]
jmp 0x5f9182
mov eax, dword [ebx + 0x4c]
movzx ecx, byte [eax]
movzx esi, byte [eax + 1]
movzx edi, byte [eax + 2]
movzx eax, byte [eax + 3]
test dl, 0x20
je 0x5f8f2e
shl edi, 8
shl esi, 0x10
or eax, edi
shl ecx, 0x18
or eax, esi
or eax, ecx
jmp 0x5f8f3d
shl esi, 8
shl edi, 0x10
or ecx, esi
shl eax, 0x18
or ecx, edi
or eax, ecx
xor esi, esi
cdq
mov edi, eax
lea ecx, [ebp - 0x38]
xor edi, edx
test eax, eax
push 1
push ecx
mov dword [ecx], 0
jl 0x5f8f59
mov esi, 1
sub edi, edx
sub edi, dword [ebx + 0xb0]
add edi, 8
push edi
push dword [ebx + 0x104]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x5f99b3
cmp eax, 0xffffffff
je 0x5f927d
mov ecx, dword [ebx + 0x104]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebx + 0x1a8]
and ecx, 0x80
movzx eax, byte [ebx + 0x1a9]
shr ecx, 7
and eax, 1
mov edx, dword [ebx + 0x16c]
mov edi, dword [ebx + 0x4c]
mov dword [ebp - 0x2c], eax
mov dword [ebx + 0xb0], 0
cmp dword [ebx + 0x28], 0xfffffffc
je 0x5f9994
cmp dword [0x7253f4], 0
je 0x5f9078
lea eax, [edx - 1]
cmp eax, 1
jbe 0x5f927d
test ecx, ecx
je 0x5f9070
cmp edx, 0xfffffffa
je 0x5f9964
test edx, edx
je 0x5f9925
cmp dword [ebp - 0x2c], 0
je 0x5f9078
mov dword [ebp - 0x4c], 0
push dword [ebp - 0x34]
mov dword [ebp - 0x54], edx
call fcn.0062f340
push dword [ebp - 0x34]
call fcn.0062f360
mov edx, dword [ebp - 0x54]
add esp, 8
cmp dword [ebp - 0x4c], 0
je 0x5f9078
push dword [ebp - 0x34]
push 4
push edi
call fcn.0062f340
add esp, 0xc
mov dword [ebx + 0xb0], eax
cmp eax, 0xffffffff
je 0x5f927d
push 0
push dword [ebp - 0x34]
push 2
push 0x69a9e8
mov dword [ebp - 0x48], eax
call fcn.0062f340
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov byte [eax + edi], 0xa
inc dword [ebx + 0xb0]
jmp 0x5f912c
test edx, edx
je 0x5f9925
mov dword [ebp - 0x54], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x168]
mov edx, dword [ebp - 0x54]
mov dword [ebx + 0xb0], 0
test eax, eax
je 0x5f9109
cmp eax, 4
jae 0x5f9109
test edx, edx
je 0x5f9109
test eax, eax
mov dword [ebp - 0x60], esi
jne 0x5f90af
mov eax, 0x20000
mov edx, 4
mov ebx, edi
mov edi, eax
mov esi, edx
push 0
lea ecx, [ebp - 0x5c]
push ecx
push edi
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f90da
mov esi, dword [ebp - 0x60]
mov ebx, dword [ebp + 8]
jmp 0x5f9124
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x5c]
sub esi, edx
add ebx, edx
add dword [ecx], edx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x168]
test ecx, ecx
jne 0x5f90f8
mov ecx, 0x20000
cmp esi, ecx
ja 0x5f90fe
mov edi, esi
test esi, esi
je 0x5f90d2
cmp edx, dword [ebp - 0x58]
je 0x5f90ba
jmp 0x5f90d2
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x5c]
mov dword [ebx + 0xb0], edx
test eax, eax
je 0x5f927d
mov eax, dword [ebx + 0x4c]
movzx edx, byte [ebx + 0x1a5]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
movzx edi, byte [eax + 2]
movzx eax, byte [eax + 3]
mov ebx, dword [ebp + 8]
test byte [ebp - 0x44], 0x20
je 0x5f9165
shl edi, 8
shl ecx, 0x10
or eax, edi
shl edx, 0x18
or eax, ecx
or eax, edx
jmp 0x5f9174
shl ecx, 8
shl edi, 0x10
or edx, ecx
shl eax, 0x18
or edx, edi
or eax, edx
test esi, esi
je 0x5f8f3f
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebx + 0xb0]
or edx, 2
mov dword [ebx + 0x64], eax
mov byte [ebx + 0x1a5], dl
cmp dword [ebp - 0x14], 0
lea ecx, [eax + esi]
mov dword [ebp - 0x18], ecx
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x50], ecx
je 0x5f91ae
test esi, esi
je 0x5fa27b
mov edi, dword [ebx + 0x58]
mov dword [ebx + 0x12c], 0
cmp edi, dword [ebp - 0x18]
je 0x5f920b
movsx eax, byte [ebx + 0x18c]
add eax, 0xfffffffa
test eax, 0xfffffffd
jne 0x5f920b
mov eax, edi
dec eax
je 0x5f9980
cmp byte [edi - 1], 0xd
jne 0x5f91ec
mov edi, dword [ebp - 0x18]
cmp edi, eax
ja 0x5f91e9
mov edi, eax
mov dword [ebx + 0x58], edi
test byte [ebx + 0x1aa], 0x10
je 0x5f920b
cmp edi, dword [ebp - 0x18]
jbe 0x5f920b
mov eax, dword [ebp - 0x18]
cmp byte [edi - 1], 0xd
jne 0x5f920b
dec edi
mov dword [ebx + 0x58], edi
cmp edi, eax
ja 0x5f91fd
test byte [ebx + 0x1a0], 4
je 0x5f9235
test byte [ebx + 0x1a2], 0x40
je 0x5f9235
test byte [ebx + 0x1a3], 8
je 0x5f9235
cmp byte [ebx + 0x18c], 1
jne 0x5f9235
add edi, 0xfffffffe
mov dword [ebx + 0x58], edi
sub edi, dword [ebp - 0x18]
cmp edi, 1
jne 0x5f9273
movzx eax, byte [ebx + 0x1a2]
test al, 0x40
jne 0x5f9267
test eax, 0x80
jne 0x5f925e
movzx eax, byte [ebx + 0x1a8]
test al, 1
jne 0x5f925e
test al, 2
je 0x5f9273
cmp byte [ebx + 0x18c], 4
jne 0x5f9273
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x1a
je 0x5f9903
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
and byte [ebx + 0x1ad], 0xfe
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x14]
cmp esi, edi
mov ecx, esi
mov eax, dword [ebx + 0x104]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
movzx edx, byte [ebx + 0x1a8]
jl 0x5f92bf
mov ecx, edi
and edx, 0x80
shr edx, 7
mov dword [esp + 0x10], edx
movzx edx, byte [ebx + 0x1a9]
and edx, 1
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0x16c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov edx, dword [ebp - 0x50]
call fcn.005fa29c
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
je 0x5f9bf4
cmp dword [ebp - 0x54], 0
je 0x5f9bb8
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x5f9b89
sub edi, edx
sub esi, edx
add dword [ebp - 0x50], edx
test edi, edi
jle 0x5f9b79
movzx eax, byte [ebx + 0x1a8]
lea esi, [ebp - 0x1c]
and eax, 0x80
mov ecx, dword [ebx + 0x16c]
movzx edx, byte [ebx + 0x1a9]
mov dword [esp + 0xc], esi
and edx, 1
shr eax, 7
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebp - 0x20]
call fcn.005fa29c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
je 0x5f9b66
test esi, esi
je 0x5f9b2a
cmp dword [ebp - 0x1c], 0
je 0x5f9afb
cmp dword [ebp - 0x20], 4
je 0x5f9aaa
mov eax, dword [ebp - 0x24]
cdq
xor eax, edx
lea esi, [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x24], eax
movzx eax, byte [ebx + 0x1a8]
and eax, 0x80
mov ecx, dword [ebx + 0x16c]
movzx edx, byte [ebx + 0x1a9]
mov dword [esp + 0xc], esi
and edx, 1
shr eax, 7
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebp - 0x20]
call fcn.005fa29c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
je 0x5f9a97
test esi, esi
je 0x5f9a5b
cmp dword [ebp - 0x1c], 0
je 0x5f9a2c
cmp dword [ebp - 0x20], 4
je 0x5f99d5
mov esi, dword [ebp - 0x28]
test esi, esi
js 0x5f9432
mov dword [ebp - 0x3c], 1
jmp 0x5f92a3
neg esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], 0
jmp 0x5f92a3
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x108], eax
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebx + 0x50]
cmp byte [eax + 2], 0x1a
jne 0x5f8b52
add dword [ebx + 0xb8], 1
adc dword [ebx + 0xbc], 0
mov eax, 0x18
and byte [ebx + 0x1a7], 0xfb
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ecx
call fcn.0062f360
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
cmp dword [0x7253f4], 0
je 0x5f902a
test ecx, ecx
je 0x5f902a
cmp dword [ebp - 0x2c], 0
je 0x5f902a
mov dword [ebp - 0x4c], 1
jmp 0x5f900b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x2c], 0
je 0x5f902a
mov dword [ebp - 0x4c], 1
jmp 0x5f900b
push 0x13cd
push str.for_get.c
push str.terminator_minus_one
call fcn.00657e58
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ecx
call fcn.005b2980
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
cmp eax, 1
jg 0x5f912c
jmp 0x5f8fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5f99cd
mov eax, 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
jmp 0x5f8f80
mov eax, dword [ebp - 0x3c]
jmp 0x5f8f80
test byte [ebx + 0x1a5], 0x20
je 0x5f9a05
movzx edx, byte [ebp - 0x26]
shl edx, 8
movzx esi, byte [ebp - 0x25]
movzx ecx, byte [ebp - 0x27]
or esi, edx
shl ecx, 0x10
movzx edx, byte [ebp - 0x28]
or esi, ecx
shl edx, 0x18
or esi, edx
mov dword [ebp - 0x28], esi
jmp 0x5f9422
movzx edx, byte [ebp - 0x27]
shl edx, 8
movzx esi, byte [ebp - 0x28]
movzx ecx, byte [ebp - 0x26]
or esi, edx
shl ecx, 0x10
movzx edx, byte [ebp - 0x25]
or esi, ecx
shl edx, 0x18
or esi, edx
mov dword [ebp - 0x28], esi
jmp 0x5f9422
and byte [ebx + 0x1ad], 0xfe
cmp dword [ebx + 0x124], 0xfffffffc
jne 0x5f988e
call fcn.005b2980
cmp eax, 1
jle 0x5f988e
mov eax, 0x30d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
and byte [ebx + 0x1ad], 0xfe
mov dword [ebx + 0x108], eax
cmp eax, 0x26
je 0x5f988e
cmp eax, 0x6d
jne 0x5f9a8a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [ebx + 0x104]
je 0x5f988e
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x60], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x60]
jmp 0x5f9403
test byte [ebx + 0x1a5], 0x20
je 0x5f9ad7
movzx edx, byte [ebp - 0x22]
shl edx, 8
movzx eax, byte [ebp - 0x21]
movzx ecx, byte [ebp - 0x23]
or eax, edx
shl ecx, 0x10
movzx esi, byte [ebp - 0x24]
or eax, ecx
shl esi, 0x18
or eax, esi
jmp 0x5f93a1
movzx edx, byte [ebp - 0x23]
shl edx, 8
movzx eax, byte [ebp - 0x24]
movzx ecx, byte [ebp - 0x22]
or eax, edx
shl ecx, 0x10
movzx esi, byte [ebp - 0x21]
or eax, ecx
shl esi, 0x18
or eax, esi
jmp 0x5f93a1
and byte [ebx + 0x1ad], 0xfe
cmp dword [ebx + 0x124], 0xfffffffc
jne 0x5f988e
call fcn.005b2980
cmp eax, 1
jle 0x5f988e
mov eax, 0x30d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
and byte [ebx + 0x1ad], 0xfe
mov dword [ebx + 0x108], eax
cmp eax, 0x26
je 0x5f988e
cmp eax, 0x6d
jne 0x5f9b59
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [ebx + 0x104]
je 0x5f988e
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x5c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x5c]
jmp 0x5f9382
mov dword [ebp - 0x14], edi
mov edx, 1
mov edi, dword [ebp - 0x20]
jmp 0x5f8d19
and byte [ebx + 0x1ad], 0xfe
cmp dword [ebx + 0x124], 0xfffffffc
jne 0x5f988e
call fcn.005b2980
cmp eax, 1
jle 0x5f988e
mov eax, 0x30d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
and byte [ebx + 0x1ad], 0xfe
mov dword [ebx + 0x108], eax
cmp eax, 0x26
je 0x5f988e
cmp eax, 0x6d
jne 0x5f9be7
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [ebx + 0x104]
je 0x5f988e
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x58], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x58]
jmp 0x5f9304
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5f9eea
cmp dword [ebp - 0x58], 0
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x4c]
jne 0x5f9c23
mov ecx, eax
mov edx, dword [ebx + 0x64]
mov dword [ebp - 0x60], ecx
cmp ecx, edx
je 0x5f9c83
cmp dword [ebp - 0x48], 0
jbe 0x5f9c72
cmp edx, dword [ebp - 0x60]
jb 0x5f9c48
mov eax, ecx
mov ecx, dword [ebp - 0x48]
add eax, ecx
cmp eax, edx
ja 0x5f9c52
cmp edx, dword [ebp - 0x60]
ja 0x5f9c60
mov eax, dword [ebp - 0x48]
add eax, edx
cmp eax, dword [ebp - 0x60]
jbe 0x5f9c60
push dword [ebp - 0x48]
push edx
push dword [ebp - 0x60]
call fcn.00641fc0
jmp 0x5f9c6c
push dword [ebp - 0x48]
push edx
push dword [ebp - 0x60]
call fcn.0062a530
add esp, 0xc
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebp - 0x60]
jne 0x5f9c83
mov edx, dword [ebx + 0x64]
sub edx, dword [ebp - 0x60]
mov dword [ebx + 0x64], eax
sub dword [ebx + 0x58], edx
mov ecx, dword [ebx + 0x10c]
cmp ecx, dword [ebp - 0x38]
jae 0x5f9d24
cmp dword [ebp - 0x54], 0
jne 0x5f9ca5
mov eax, 0x16
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x4c]
push ecx
push eax
lea eax, [esi + edx + 0x14]
push eax
call fcn.005c09f0
add esp, 0xc
test eax, eax
je 0x5f9ccb
mov eax, 0x62
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x5c]
lea edx, [esi + eax + 4]
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x118], edx
mov dword [ebx + 0x10c], edx
mov dword [edx + eax], 0x23332340
mov dword [ebp - 0x60], eax
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x10c]
mov dword [eax + edx + 4], 0x23372335
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x10c]
mov dword [eax + edx + 8], 0x23302339
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x10c]
mov dword [eax + edx + 0xc], 0x352333
mov ecx, dword [ebx + 0x10c]
mov eax, dword [ebx + 0xb0]
sub ecx, eax
mov edx, dword [ebp - 0x60]
add edx, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x60], edx
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + 0x1a8]
and eax, 0x80
shr eax, 7
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x1a9]
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x16c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0x1c], ebx
call fcn.005fa29c
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x60]
add dword [ebx + 0xb0], eax
mov dword [ebx + 0x50], edx
add edx, eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
je 0x5f9ed7
cmp dword [ebp - 0x5c], 0
jne 0x5f9dec
and byte [ebx + 0x1ad], 0xfe
mov dword [ebx + 0x108], eax
cmp eax, 0x26
je 0x5f988e
cmp eax, 0x6d
jne 0x5f9ddf
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [ebx + 0x104]
je 0x5f988e
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp dword [ebp - 0x1c], 0
jne 0x5f9e0f
and byte [ebx + 0x1ad], 0xfe
cmp dword [ebx + 0x124], 0xfffffffc
je 0x5f9e77
mov eax, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp dword [ebp - 0x58], 0
je 0x5f9e1c
or byte [ebx + 0x1a7], 0x40
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x48], eax
cmp eax, dword [ebp - 0x38]
jb 0x5f9290
movzx edx, byte [ebx + 0x1ac]
mov dword [ebp - 0x4c], edx
and edx, 1
mov eax, dword [ebx + 0x64]
sub dword [ebp - 0x48], edi
lea ecx, [edi + eax]
mov dword [ebp - 0x18], ecx
mov dword [ebx + 0x50], ecx
cmp edx, 1
je 0x5f9e8e
mov edx, dword [ebp - 0x38]
add eax, edx
neg edx
add edx, edi
sub edi, esi
add edx, dword [ebp - 0x48]
add edi, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0xb0], edx
mov dword [ebx + 0x58], edi
or byte [ebx + 0x1a5], 2
jmp 0x5f91b1
call fcn.005b2980
cmp eax, 1
jle 0x5f9e02
mov eax, 0x30d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x48]
mov dword [ebx + 0xb0], edx
test byte [ebp - 0x4c], 0x40
je 0x5f9ec7
cmp edx, dword [ebp - 0x38]
jb 0x5f9eb6
mov edi, edx
mov edx, dword [ebp - 0x38]
add edx, eax
mov dword [ebx + 0x64], edx
add edi, eax
mov dword [ebx + 0x58], edi
jmp 0x5f91b1
mov edi, dword [ebx + 0x4c]
add edi, dword [ebx + 0x10c]
mov dword [ebx + 0x58], edi
jmp 0x5f91b1
sub esi, edi
add eax, dword [ebp - 0x48]
lea edi, [esi + eax]
mov dword [ebx + 0x58], edi
jmp 0x5f91b1
mov dword [ebp - 0x60], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x60]
jmp 0x5f9daa
mov eax, dword [ebp + 0xc]
cmp byte [eax], 1
jne 0x5f9c12
mov dword [ebp - 0x20], edi
lea edx, [ebx + 0xb0]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x38]
mov edx, 1
sub edi, eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x104]
mov dword [esp + 8], 0
call fcn.005d74a0
mov ecx, eax
mov eax, 0xffffffff
sub ecx, eax
sub edx, eax
or ecx, edx
je 0x5f95e3
test byte [ebx + 0x1aa], 0x20
je 0x5fa002
movzx edi, byte [ebx + 0x1a8]
mov esi, dword [ebp - 0x60]
and edi, 0x80
mov edx, dword [ebx + 0x16c]
movzx eax, byte [ebx + 0x1a9]
mov dword [esp + 0xc], esi
and eax, 1
shr edi, 7
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x104]
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebp - 0x20]
call fcn.005fa29c
mov eax, dword [ebx + 0xb0]
mov edi, dword [ebx + 0x4c]
mov dword [ebx + 0x50], edi
test byte [ebx + 0x1a5], 0x20
lea edx, [eax + edi]
mov dword [ebx + 0x68], edx
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
movzx esi, byte [edi + 2]
movzx edi, byte [edi + 3]
je 0x5f9fcb
shl esi, 8
shl ecx, 0x10
or edi, esi
shl edx, 0x18
or edi, ecx
or edi, edx
jl 0x5f9fe8
jmp 0x5f9fdc
shl ecx, 8
shl esi, 0x10
or edx, ecx
shl edi, 0x18
or edx, esi
or edi, edx
jl 0x5f9fe8
movzx edx, byte [ebx + 0x1aa]
and edx, 0xffffffdf
jmp 0x5f9ff4
movzx edx, byte [ebx + 0x1aa]
neg edi
or edx, 0x20
mov byte [ebx + 0x1aa], dl
add edi, 8
jmp 0x5f9f08
movzx eax, byte [ebx + 0x1a8]
mov edx, dword [ebp - 0x60]
and eax, 0x80
mov edi, dword [ebp - 0x20]
mov ecx, edi
mov dword [esp + 0xc], edx
shr eax, 7
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x1a9]
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x16c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x104]
mov edx, dword [ebx + 0x4c]
mov dword [esp + 0x1c], ebx
call fcn.005fa29c
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x64], edx
add eax, edx
add edx, edi
mov dword [ebx + 0x68], eax
mov dword [ebp - 0x18], edx
mov dword [ebx + 0x50], edx
or byte [ebx + 0x1a5], 2
mov edi, dword [ebx + 0x58]
jmp 0x5f91b1
mov eax, dword [ebp + 0xc]
cmp byte [eax + 2], 1
jne 0x5f8c02
mov eax, dword [ebx + 0x50]
mov edi, dword [ebx + 0x58]
or byte [ebx + 0x1a7], 0x20
mov dword [ebp - 0x18], eax
jmp 0x5f91b1
mov edx, dword [ebp + 0xc]
cmp byte [edx + 2], 1
jne 0x5f8c02
mov edx, dword [ebp + 0x10]
cmp eax, dword [edx]
ja 0x5f8c02
mov eax, dword [ebx + 0x50]
mov edi, dword [ebx + 0x58]
or byte [ebx + 0x1a7], 0x20
mov dword [ebp - 0x18], eax
jmp 0x5f91b1
cmp dword [ebp - 0x50], 0
jne 0x5f8c0c
jmp 0x5f9c12
cmp dword [ebp - 0x48], 0
jbe 0x5fa115
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x4c]
cmp edx, eax
ja 0x5fa0ee
mov ecx, dword [ebp - 0x48]
add ecx, edx
cmp ecx, eax
ja 0x5fa0f7
cmp edx, eax
jb 0x5fa106
mov ecx, dword [ebp - 0x48]
add ecx, eax
cmp edx, ecx
jae 0x5fa106
push dword [ebp - 0x48]
push eax
push edx
call fcn.00641fc0
add esp, 0xc
jmp 0x5fa139
push dword [ebp - 0x48]
push eax
push edx
call fcn.0062a530
add esp, 0xc
jmp 0x5fa139
movzx eax, byte [ebx + 0x1ac]
test al, 0x40
je 0x5fa132
and eax, 0x7f
mov byte [ebx + 0x1ac], al
mov dword [ebp - 0x48], 0
jmp 0x5fa139
mov dword [ebp - 0x48], 0
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebp - 0x48]
add edx, eax
mov ecx, dword [ebx + 0x10c]
mov dword [ebp - 0x58], 0
sub ecx, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + 0x1a8]
and eax, 0x80
shr eax, 7
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0x1a9]
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x16c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0x1c], ebx
call fcn.005fa29c
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0xb0], edx
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x50], ecx
lea eax, [ecx + edx]
add edx, ecx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x58], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x3e3
je 0x5fa253
cmp dword [ebp - 0x60], 0
je 0x5fa213
cmp dword [ebp - 0x1c], 0
je 0x5fa1e4
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x48], eax
jmp 0x5f8a3c
and byte [ebx + 0x1ad], 0xfe
cmp dword [ebx + 0x124], 0xfffffffc
jne 0x5f988e
call fcn.005b2980
cmp eax, 1
jle 0x5f988e
mov eax, 0x30d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x5c]
and byte [ebx + 0x1ad], 0xfe
mov dword [ebx + 0x108], eax
cmp eax, 0x26
je 0x5f988e
cmp dword [ebp - 0x5c], 0x6d
jne 0x5fa246
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [ebx + 0x104]
je 0x5f988e
mov eax, 0x27
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5fa1ca
call fcn.005b2980
cmp eax, 1
jle 0x5f7ee9
mov eax, 0x30d
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, 0x43
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret