Function at 0x1001cbb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x131]
test al, 4
je 0x1001cb37
push edi
call fcn.100521b8
pop ecx
test eax, eax
jne 0x1001d635
and byte [edi + 0x131], 0xfb
movzx eax, byte [edi + 0x12a]
test al, 0x40
je 0x1001cb86
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1001cb9c
movzx eax, byte [edx + 0x1c]
test eax, eax
je 0x1001cb89
mov byte [ebp - 0x10], 0xa
lea eax, [ebp - 0x10]
mov edx, dword [edx + 0x10]
test edx, edx
push 1
push eax
jne 0x1001cb64
mov edx, edi
push edx
call fcn.1002ccf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001d63c
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1001cb9c
mov byte [eax + 0x1c], 0
mov edx, dword [edi + 0x7c]
jmp 0x1001cb89
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1001cb9c
mov byte [edx + 0x1d], 0
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1001cb9c
mov byte [eax + 0x20], 0
movsx edx, byte [edi + 0x11c]
lea eax, [edx - 1]
cmp eax, 6
ja case.default.0x1001cbb6
mov eax, dword [eax*4 + 0x100bbf80]
jmp eax
mov ecx, dword [edi + 0xbc]
cmp edx, 7
mov edx, dword [edi + 0x50]
mov ebx, 0xd
je 0x1001cbd0
mov ebx, 0xa
test edx, edx
je 0x1001d8b3
mov esi, dword [edi + 0x88]
cmp esi, 5
jbe 0x1001cc23
push esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x14], ecx
push ebx
push edx
call fcn.100910e0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
je 0x1001cc47
mov dword [edi + 0x3c], edx
mov dword [edi + 0x44], eax
lea ebx, [eax + 1]
mov dword [edi + 0x50], ebx
sub eax, edx
movsx edx, byte [edi + 0x11c]
sub esi, eax
add esi, 0xffffffff
mov dword [edi + 0x88], esi
jmp 0x1001d5a1
test esi, esi
jbe 0x1001cc47
mov dword [ebp - 0x14], ecx
xor eax, eax
lea ecx, [edx + eax]
movsx edi, byte [ecx]
cmp edi, ebx
je 0x1001d8a6
add eax, 1
cmp eax, esi
jb 0x1001cc2c
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
push 0xfffffffffffffff6
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 0xb4]
cmp edx, eax
je 0x1001d84d
sub ecx, esi
xor eax, eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x1001cc89
push esi
push dword [edi + 0x50]
push dword [edi + 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], ecx
call fcn.1007f4d4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x44], esi
mov edx, esi
add edx, dword [edi + 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], ecx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], ebx
mov edx, 1
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov eax, dword [0x100d9158]
mov ebx, dword [edi + 0xb4]
movzx edx, byte [edi + 0x130]
mov esi, dword [edi + 0x108]
mov ecx, edx
and ecx, 0x20
shr ecx, 5
and edx, 0x40
shr edx, 6
test eax, eax
je 0x1001cd86
cmp esi, 2
je 0x1001ccea
cmp esi, 1
jne 0x1001ccf4
mov ebx, 0xffffffff
jmp 0x1001cdbb
test ecx, ecx
je 0x1001cd01
cmp esi, 0xfffffffa
je 0x1001d654
test esi, esi
je 0x1001d670
xor esi, esi
test ecx, ecx
je 0x1001cd86
test edx, edx
je 0x1001cd28
mov eax, dword [ebp - 0x24]
push eax
call fcn.1007ed44
mov eax, dword [ebp - 0x24]
push eax
call fcn.1007ec30
add esp, 8
test esi, esi
je 0x1001cd86
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
push eax
push edx
push ecx
call fcn.1007ecd4
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
je 0x1001d669
mov eax, dword [ebp - 0x24]
push 0
push eax
push 2
push 0x100bbfa8
call fcn.1007ed04
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov byte [ebx + eax], 0xa
mov ebx, 1
add dword [ebp - 0x34], 1
test edx, edx
je 0x1001cdbb
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001cdbb
mov esi, dword [ebp - 0x34]
jmp 0x1001cde2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
lea edx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x34], eax
push eax
push edx
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
test edx, edx
je 0x1001cdbb
cmp ebx, 1
je 0x1001cd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e3
je 0x1001d840
test ebx, ebx
je 0x1001d7f4
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x1001d086
mov eax, dword [ebp - 0x14]
cmp esi, eax
jge 0x1001ce23
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
movsx edx, byte [esi + eax - 1]
cmp edx, ecx
je 0x1001ce23
movzx eax, byte [edi + 0x12a]
test al, 0x40
jne 0x1001ce0e
mov eax, dword [edi + 0x100]
cmp eax, 1
jne 0x1001ce23
mov edx, dword [ebp - 0x2c]
mov eax, ecx
add dword [ebp - 0x1c], 1
mov byte [esi + edx], al
mov esi, dword [ebp - 0x34]
add esi, 1
mov dword [ebp - 0x34], esi
cmp esi, 5
jle 0x1001ce4e
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
push esi
lea ebx, [eax + edx]
add ebx, dword [edi + 0x38]
push ecx
push ebx
call fcn.100910e0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x1001d6a3
jmp 0x1001ce84
test esi, esi
jle 0x1001d7ed
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
lea edx, [eax + edx]
add edx, dword [edi + 0x38]
mov eax, dword [ebp - 0x30]
lea ebx, [ecx + edx]
movsx edi, byte [ebx]
cmp edi, eax
je 0x1001d7da
add ecx, 1
cmp ecx, esi
jl 0x1001ce67
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor ebx, ebx
add dword [ebp - 0x28], esi
test ebx, ebx
je 0x1001d6ce
mov eax, dword [ebp - 0x20]
mov edx, eax
add eax, 0xffffffff
mov dword [ebp - 0x20], eax
test edx, edx
jg 0x1001ccb2
mov esi, dword [ebp - 0x44]
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edi + 0x38]
or byte [edi + 0x12c], 0x80
mov dword [edi + 0x3c], ecx
lea edx, [ebx + 1]
mov dword [edi + 0x50], edx
mov dword [edi + 0x44], ebx
sub ebx, ecx
sub esi, ebx
add esi, 0xffffffff
mov dword [edi + 0x88], esi
test eax, eax
je 0x1001ced6
test esi, esi
jne 0x1001cee2
movsx edx, byte [edi + 0x11c]
jmp 0x1001d5a1
sub esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
xor edx, edx
sub edx, esi
mov dword [ebp - 0x48], edx
push 1
push eax
mov esi, 0
sbb esi, 0
push edx
push dword [edi + 0xb4]
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x1001cf27
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1001cf27
mov eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
add edx, 1
add eax, 1
or edx, eax
je 0x1001d6b0
movsx edx, byte [edi + 0x11c]
xor eax, eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x50], eax
jmp 0x1001d5a1
movzx eax, byte [edi + 0x12c]
test eax, 0x80
jne 0x1001d0f0
mov ecx, dword [0x100d9158]
mov edx, dword [edi + 0xb4]
mov esi, dword [edi + 0x38]
mov ebx, dword [edi + 0xbc]
movzx eax, byte [edi + 0x130]
mov dword [ebp - 0x20], edx
mov edx, eax
and edx, 0x20
shr edx, 5
and eax, 0x40
test ecx, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x108]
je 0x1001d03d
cmp eax, 2
je 0x1001cfa9
cmp eax, 1
jne 0x1001cfb3
mov ebx, 0xffffffff
jmp 0x1001d063
test edx, edx
je 0x1001cfc0
cmp eax, 0xfffffffa
je 0x1001d8be
test eax, eax
je 0x1001d8d5
xor eax, eax
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x1001cff9
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x1001cff9
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push edx
call fcn.1007ed44
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push edx
call fcn.1007ec30
mov eax, dword [ebp - 0x30]
add esp, 8
test eax, eax
je 0x1001d03d
mov eax, dword [ebp - 0x2c]
push eax
push ebx
push esi
call fcn.1007ecd4
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
je 0x1001d8ce
mov eax, dword [ebp - 0x2c]
push 0
push eax
push 2
push 0x100bbfa8
call fcn.1007ed04
add esp, 0x10
mov byte [ebx + esi], 0xa
mov ebx, 1
add dword [ebp - 0x34], 1
jmp 0x1001d063
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x34], eax
push eax
push edx
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e3
je 0x1001d8fa
test ebx, ebx
jne 0x1001d0c7
mov dword [edi + 0xb8], esi
cmp esi, 0x26
jne 0x1001d098
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
cmp esi, 0x6d
jne 0x1001d2c9
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xb4]
jne 0x1001d2c9
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1001d518
mov eax, dword [edi + 0x38]
or byte [edi + 0x12c], 0x80
mov dword [edi + 0x3c], eax
add edx, eax
mov dword [edi + 0x44], edx
movsx edx, byte [edi + 0x11c]
jmp 0x1001d5a1
mov eax, dword [edi + 0x3c]
cmp eax, dword [edi + 0x44]
je 0x1001cf64
jmp 0x1001d5a1
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov ebx, 2
xor edx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x88]
jmp 0x1001d1f2
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov ebx, 8
mov eax, 4
mov edx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x88]
jmp 0x1001d1f2
movzx eax, byte [edi + 0x12a]
test eax, 0x80
je 0x1001d15a
movzx eax, byte [edi + 0x12f]
jmp 0x1001d16c
movzx eax, byte [edi + 0x12f]
test al, 0x40
jne 0x1001d16c
test eax, 0x80
je 0x1001d1b2
test al, 8
je 0x1001d1b2
mov edx, dword [edi + 0x88]
test edx, edx
jne 0x1001d1a5
mov ecx, dword [edi + 0xfc]
cmp ecx, dword [edi + 0xc0]
jne 0x1001d1a5
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
xor eax, eax
cmp ecx, dword [edi + 0xbc]
mov dword [ebp - 0x18], eax
mov ecx, eax
sete cl
mov dword [ebp - 0x18], ecx
jmp 0x1001d1f2
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x1001d1f2
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x88]
jmp 0x1001d1f2
push 0x465
push str.for_get.c
push 2
push 8
call fcn.100149ac
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x88]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x1001d204
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x20], eax
jmp 0x1001d306
push edx
push dword [edi + 0x50]
push dword [edi + 0x38]
call fcn.1007f4d4
add esp, 0xc
movzx eax, byte [edi + 0x130]
mov edx, dword [edi + 0x38]
add edx, dword [edi + 0x88]
mov ecx, dword [edi + 0xbc]
sub ecx, dword [edi + 0x88]
mov dword [ebp - 0x30], ebx
lea ebx, [ebp - 0x34]
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x30]
mov esi, eax
and esi, 0x20
shr esi, 5
mov dword [esp + 0x10], esi
and eax, 0x40
shr eax, 6
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x108]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xb4]
call fcn.1001d9b0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e3
je 0x1001d995
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1001d2db
mov dword [edi + 0xb8], esi
cmp esi, 0x26
jne 0x1001d2a2
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
cmp esi, 0x6d
jne 0x1001d2c9
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xb4]
jne 0x1001d2c9
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x27
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1001d518
add edx, dword [edi + 0x88]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x38]
mov dword [edi + 0x88], edx
mov dword [edi + 0x50], eax
mov dword [ebp - 0x20], eax
cmp edx, ecx
jb 0x1001d518
mov eax, dword [ebp - 0x14]
cmp eax, 4
jne 0x1001d390
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
movzx esi, byte [eax + 1]
mov dword [ebp - 0x38], ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
movzx eax, byte [edi + 0x12d]
test al, 8
je 0x1001d355
mov eax, dword [ebp - 0x28]
shl ecx, 8
or eax, ecx
shl esi, 0x10
mov ecx, dword [ebp - 0x38]
or eax, esi
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x1001d372
mov ecx, esi
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x24]
shl ecx, 8
or eax, ecx
shl esi, 0x10
mov ecx, dword [ebp - 0x28]
or eax, esi
shl ecx, 0x18
or ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
test eax, eax
jl 0x1001d382
and byte [edi + 0x132], 0xf7
jmp 0x1001d3cb
or byte [edi + 0x132], 8
neg eax
mov dword [ebp - 0x28], eax
jmp 0x1001d3cb
cmp eax, 2
jne 0x1001d3c2
mov eax, dword [ebp - 0x20]
movzx esi, byte [eax]
movzx ecx, byte [eax + 1]
shl ecx, 8
or esi, ecx
movsx eax, si
mov dword [ebp - 0x28], eax
cmp eax, 1
je 0x1001d907
mov eax, dword [ebp - 0x28]
and eax, 1
lea ecx, [ebx + 1]
je 0x1001d3cb
mov ebx, ecx
jmp 0x1001d3cb
mov eax, dword [edi + 0xc0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebx + eax]
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jbe 0x1001d570
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001d3ee
mov eax, dword [edi + 0x80]
mov dword [ebp - 0x2c], eax
jmp 0x1001d3f4
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x2c]
push eax
push edx
call fcn.1007f4d4
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [edi + 0xbc]
mov dword [ebp - 0x20], eax
cmp edx, eax
jbe 0x1001d472
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x1001d42e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x16
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
push eax
lea esi, [ebx + edx + 4]
lea ecx, [edi + 0x38]
mov dword [ebp - 0x20], esi
push ecx
push esi
call fcn.10049694
add esp, 0xc
test eax, eax
jne 0x1001d460
mov eax, esi
mov edx, dword [edi + 0x38]
mov dword [ebp - 0x2c], edx
mov dword [edi + 0xc0], eax
mov dword [edi + 0xbc], eax
jmp 0x1001d472
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x62
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
lea esi, [ebp - 0x34]
mov ebx, dword [edi + 0x88]
mov dword [esp + 0xc], esi
sub ecx, ebx
add edx, ebx
movzx ebx, byte [edi + 0x130]
mov eax, ebx
and eax, 0x20
shr eax, 5
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x108]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xb4]
and ebx, 0x40
shr ebx, 6
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp - 0x30]
call fcn.1001d9b0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e3
je 0x1001d93e
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1001d52a
mov dword [edi + 0xb8], esi
cmp esi, 0x26
jne 0x1001d4fb
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
cmp esi, 0x6d
jne 0x1001d2c9
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xb4]
jne 0x1001d2c9
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1001d518
add edx, dword [edi + 0x88]
mov eax, dword [ebp - 0x18]
mov esi, dword [edi + 0x38]
test eax, eax
mov dword [ebp - 0x20], esi
je 0x1001d54b
or byte [edi + 0x12f], 0x10
mov eax, dword [ebp - 0x24]
cmp edx, eax
jae 0x1001d570
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [edi + 0x88], edx
mov edx, dword [ebp - 0x20]
mov dword [edi + 0x50], edx
mov eax, 0x27
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
or byte [edi + 0x12c], 0x80
lea esi, [ecx + eax]
mov dword [edi + 0x3c], esi
mov esi, dword [ebp - 0x24]
add ecx, esi
mov dword [edi + 0x50], ecx
sub ebx, eax
sub ecx, ebx
mov dword [edi + 0x44], ecx
sub edx, esi
mov dword [edi + 0x88], edx
movsx edx, byte [edi + 0x11c]
mov dword [edi + 0xd0], 0
cmp edx, 6
je 0x1001d94b
movzx ecx, byte [edi + 0x128]
test cl, 4
je 0x1001d5df
movzx eax, byte [edi + 0x12a]
test al, 0x40
je 0x1001d5df
movzx eax, byte [edi + 0x12b]
test al, 4
je 0x1001d5df
cmp edx, 1
jne 0x1001d5df
add dword [edi + 0x44], 0xfffffffe
test cl, 1
je 0x1001d626
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x44]
sub eax, ecx
cmp eax, 1
jne 0x1001d626
movzx eax, byte [edi + 0x12a]
test al, 0x40
jne 0x1001d61a
test eax, 0x80
jne 0x1001d615
movzx eax, byte [edi + 0x12f]
test al, 0x40
jne 0x1001d615
test eax, 0x80
je 0x1001d626
cmp edx, 4
jne 0x1001d626
movsx eax, byte [ecx]
cmp eax, 0x1a
je 0x1001d917
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb8], eax
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], ebx
mov esi, 1
test edx, edx
jne 0x1001cd13
jmp 0x1001cd2c
xor ebx, ebx
jmp 0x1001cdbb
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x48], ecx
call fcn.1007ee18
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x100d9158]
test eax, eax
je 0x1001cd2c
mov esi, 1
test ecx, ecx
jne 0x1001cd0f
jmp 0x1001cd2c
mov eax, 0xffffffff
mov dword [ebp - 0x20], eax
jmp 0x1001ce84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov dword [edi + 0xb8], eax
mov edi, dword [ebp - 8]
mov eax, 0x27
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [edi + 0x38]
sub eax, edx
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x1001d736
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1001d6ec
mov eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xbc]
mov ecx, eax
sub ecx, dword [ebp - 0x28]
jne 0x1001d7cb
push eax
lea ecx, [eax + eax]
mov dword [ebp - 0x3c], ecx
lea edx, [edi + 0x38]
push edx
push ecx
call fcn.10049694
add esp, 0xc
test eax, eax
jne 0x1001d460
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
mov edx, dword [edi + 0x38]
mov dword [edi + 0xc0], eax
mov dword [edi + 0xbc], eax
jmp 0x1001d7cb
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x1001d7b8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1001d764
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0xbc]
mov dword [ebp - 0x3c], ecx
add eax, eax
mov dword [ebp - 0x14], eax
sub ecx, dword [ebp - 0x28]
cmp eax, ecx
ja 0x1001d76d
mov dword [edi + 0xc0], eax
jmp 0x1001d7a7
mov eax, dword [edi + 0xbc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [eax + eax]
lea edx, [edi + 0x38]
mov dword [ebp - 0x14], ecx
push edx
push ecx
call fcn.10049694
add esp, 0xc
test eax, eax
jne 0x1001d460
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov edx, dword [edi + 0x38]
mov dword [edi + 0xc0], eax
mov dword [edi + 0xbc], eax
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1001d7b3
mov eax, 1
mov dword [ebp - 0x20], eax
jmp 0x1001d7cb
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1001d41c
mov eax, dword [ebp - 0x14]
sub eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add eax, edx
add eax, esi
mov dword [ebp - 0x2c], eax
jmp 0x1001ce8f
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, 0xffffffff
mov dword [ebp - 0x20], eax
jmp 0x1001ce84
xor ebx, ebx
jmp 0x1001ce84
mov dword [edi + 0xb8], esi
cmp esi, 0x26
jne 0x1001d811
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
cmp esi, 0x6d
jne 0x1001d2c9
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, dword [edi + 0xb4]
jne 0x1001d2c9
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x18
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001cdcf
push edx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [ebp - 0x14]
cmp eax, 2
je 0x1001cc63
movzx eax, byte [edi + 0x130]
test al, 0x20
jne 0x1001cc63
movzx eax, byte [edi + 0x12c]
test al, 2
je 0x1001d892
mov ecx, dword [edi + 0xc0]
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 1
jmp 0x1001cc6a
xor eax, eax
mov edx, 1
mov dword [ebp - 0x18], edx
mov ecx, 1
jmp 0x1001cc6a
mov edi, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp - 0x14]
jmp 0x1001cbfa
mov esi, dword [edi + 0x88]
jmp 0x1001cc47
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, 1
jmp 0x1001cfd1
xor ebx, ebx
jmp 0x1001d063
mov dword [ebp - 0x48], edx
call fcn.1007ee18
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100d9158]
test eax, eax
je 0x1001cffd
mov eax, 1
jmp 0x1001cfcd
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001d077
mov eax, dword [edi + 0x3c]
movsx ecx, byte [eax + 2]
cmp ecx, 0x1a
jne 0x1001d3b3
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
add dword [edi + 0x90], 1
adc dword [edi + 0x94], 0
mov eax, 0x18
and byte [edi + 0x12e], 0x7f
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001d4d7
mov eax, dword [edi + 0x44]
lea ebx, [eax - 1]
movsx ecx, byte [ebx]
cmp ecx, 0xd
jne 0x1001d95e
mov eax, ebx
mov dword [edi + 0x44], ebx
movzx ecx, byte [edi + 0x132]
test cl, 4
je 0x1001d5b4
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jbe 0x1001d5b4
movsx ebx, byte [eax - 1]
add eax, 0xffffffff
cmp ebx, 0xd
jne 0x1001d5b4
mov dword [edi + 0x44], eax
cmp eax, ecx
ja 0x1001d979
jmp 0x1001d5b4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001d27e