Function at 0x441d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0xfffffffe
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
cmp dword [ebp + 8], 0xfffffffe
jne 0x441d65
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x442f56
cmp dword [ebp + 8], 0
jl 0x441d7f
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x497e18]
jae 0x441d7f
mov dword [ebp - 0x4c], 1
jmp 0x441d86
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jne 0x441db8
push str._fh___0___unsigned_fh____unsigned__nhandle_
push 0x47e94c
push 0
push 0x83
push 0x48cbf0
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x441db8
int3
cmp dword [ebp - 0x44], 0
jne 0x441dfa
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 9
push 0
push 0x83
push 0x48cbf0
push str._read_nolock
push str._fh___0___unsigned_fh____unsigned__nhandle_
call fcn.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x442f56
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
movsx ecx, byte [eax + edx + 4]
and ecx, 1
je 0x441e23
mov dword [ebp - 0x80], 1
jmp 0x441e2a
mov dword [ebp - 0x80], 0
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
jne 0x441e5c
push str.__osfile_fh___FOPEN_
push 0x47e94c
push 0
push 0x84
push 0x48cbf0
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x441e5c
int3
cmp dword [ebp - 0x54], 0
jne 0x441e9e
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 9
push 0
push 0x84
push 0x48cbf0
push str._read_nolock
push str.__osfile_fh___FOPEN_
call fcn.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x442f56
cmp dword [ebp + 0x10], 0x7fffffff
ja 0x441eb0
mov dword [ebp - 0x74], 1
jmp 0x441eb7
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0
jne 0x441ee9
push str._cnt___INT_MAX_
push 0x47e94c
push 0
push 0x85
push 0x48cbf0
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x441ee9
int3
cmp dword [ebp - 0x5c], 0
jne 0x441f2b
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 0x16
push 0
push 0x85
push 0x48cbf0
push str._read_nolock
push str._cnt___INT_MAX_
call fcn.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x442f56
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
je 0x441f58
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 2
je 0x441f5f
xor eax, eax
jmp 0x442f56
cmp dword [ebp + 0xc], 0
je 0x441f71
mov dword [ebp - 0x8c], 1
jmp 0x441f7b
mov dword [ebp - 0x8c], 0
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
jne 0x441fb0
push str._inputbuf___NULL_
push 0x47e94c
push 0
push 0x8e
push 0x48cbf0
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x441fb0
int3
cmp dword [ebp - 0x64], 0
jne 0x441ff2
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 0x16
push 0
push 0x8e
push 0x48cbf0
push str._read_nolock
push str._inputbuf___NULL_
call fcn.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x442f56
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
mov al, byte [edx + ecx + 0x24]
shl al, 1
sar al, 1
mov byte [ebp - 0xd], al
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x7c], cl
cmp byte [ebp - 0x7c], 1
je 0x44202e
cmp byte [ebp - 0x7c], 2
je 0x44214f
jmp 0x4421e4
mov edx, dword [ebp + 0x10]
and edx, 1
jne 0x44203f
mov dword [ebp - 0x6c], 1
jmp 0x442046
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x442078
push str.__cnt__1___0_
push 0x47e94c
push 0
push 0xaa
push 0x48cbf0
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x442078
int3
cmp dword [ebp - 0x48], 0
jne 0x4420ba
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 0x16
push 0
push 0xaa
push 0x48cbf0
push str._read_nolock
push str.__cnt__1___0_
call fcn.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x442f56
mov edx, dword [ebp + 0x10]
shr edx, 1
cmp edx, 4
jae 0x4420cd
mov dword [ebp - 0x50], 4
jmp 0x4420d5
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp + 0x10], ecx
push 0xae
push str.f:dd_vctoolscrt_bld_self_x86crt_src_read.c
push 2
mov edx, dword [ebp + 0x10]
push edx
call fcn.0041a9f0
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x44211a
call fcn.004166f0
mov dword [eax], 0xc
call fcn.00416690
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x442f56
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00439a70
add esp, 0x10
mov ecx, dword [ebp + 8]
sar ecx, 5
mov esi, dword [ebp + 8]
and esi, 0x1f
shl esi, 6
mov ecx, dword [ecx*4 + 0x497458]
mov dword [ecx + esi + 0x28], eax
mov dword [ecx + esi + 0x2c], edx
jmp 0x4421ea
mov edx, dword [ebp + 0x10]
and edx, 1
jne 0x442160
mov dword [ebp - 0x58], 1
jmp 0x442167
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x442199
push str.__cnt__1___0_
push 0x47e94c
push 0
push 0xba
push 0x48cbf0
push 2
call fcn.00417620
add esp, 0x18
cmp eax, 1
jne 0x442199
int3
cmp dword [ebp - 0x60], 0
jne 0x4421db
call fcn.00416690
mov dword [eax], 0
call fcn.004166f0
mov dword [eax], 0x16
push 0
push 0xba
push 0x48cbf0
push str._read_nolock
push str.__cnt__1___0_
call fcn.004165b0
add esp, 0x14
or eax, 0xffffffff
jmp 0x442f56
mov edx, dword [ebp + 0x10]
and edx, 0xfffffffe
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 4]
and edx, 0x48
je 0x4423e2
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 5]
cmp eax, 0xa
je 0x4423e2
cmp dword [ebp + 0x10], 0
je 0x4423e2
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [eax + edx + 5]
mov byte [ecx], dl
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
mov byte [edx + ecx + 5], 0xa
movsx eax, byte [ebp - 0xd]
test eax, eax
je 0x4423e2
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
add eax, edx
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [eax + ecx + 0x25]
cmp edx, 0xa
je 0x4423e2
cmp dword [ebp + 0x10], 0
je 0x4423e2
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
add ecx, dword [eax*4 + 0x497458]
mov edx, 1
imul edx, edx, 0
mov eax, dword [ebp - 0x2c]
mov cl, byte [ecx + edx + 0x25]
mov byte [eax], cl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
add eax, dword [edx*4 + 0x497458]
mov ecx, 1
imul ecx, ecx, 0
mov byte [eax + ecx + 0x25], 0xa
movsx edx, byte [ebp - 0xd]
cmp edx, 1
jne 0x4423e2
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
add edx, ecx
mov eax, 1
shl eax, 0
movsx ecx, byte [edx + eax + 0x25]
cmp ecx, 0xa
je 0x4423e2
cmp dword [ebp + 0x10], 0
je 0x4423e2
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
add eax, dword [edx*4 + 0x497458]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x2c]
mov al, byte [eax + ecx + 0x25]
mov byte [edx], al
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
add edx, dword [ecx*4 + 0x497458]
mov eax, 1
shl eax, 0
mov byte [edx + eax + 0x25], 0xa
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439210
add esp, 4
test eax, eax
je 0x44243f
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 4]
and edx, 0x80
je 0x44243f
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4424b0
movsx edx, byte [ebp - 0xd]
cmp edx, 2
jne 0x4424b0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
shr ecx, 1
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
jne 0x4424a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004166c0
add esp, 4
mov dword [ebp - 0x38], 0xffffffff
jmp 0x442f2b
mov edx, dword [ebp - 0x24]
shl edx, 1
mov dword [ebp - 0x24], edx
jmp 0x44254e
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4424f0
cmp dword [ebp - 0x24], 0
jl 0x4424f0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x10]
jbe 0x44254e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 5
jne 0x442522
call fcn.004166f0
mov dword [eax], 9
call fcn.00416690
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov dword [ebp - 0x38], 0xffffffff
jmp 0x442f2b
cmp dword [ebp - 0x28], 0x6d
jne 0x442536
mov dword [ebp - 0x38], 0
jmp 0x442f2b
mov eax, dword [ebp - 0x28]
push eax
call fcn.004166c0
add esp, 4
mov dword [ebp - 0x38], 0xffffffff
jmp 0x442f2b
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 4]
and edx, 0x80
je 0x442f2b
movsx eax, byte [ebp - 0xd]
cmp eax, 2
je 0x442aa6
cmp dword [ebp - 0x24], 0
je 0x4425d6
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x4425d6
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
or eax, 4
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov ecx, dword [ecx*4 + 0x497458]
mov byte [ecx + edx + 4], al
jmp 0x44260e
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 4]
and edx, 0xfffffffb
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov eax, dword [eax*4 + 0x497458]
mov byte [eax + ecx + 4], dl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0x20], eax
jae 0x442868
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
cmp edx, 0x1a
jne 0x4426b8
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x40
jne 0x442692
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
movsx ecx, byte [eax + edx + 4]
or ecx, 2
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov edx, dword [edx*4 + 0x497458]
mov byte [edx + eax + 4], cl
jmp 0x4426ae
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x442868
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x4426e4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x442863
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax - 1]
cmp dword [ebp - 0x20], edx
jae 0x44273a
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x442719
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0xa
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x442735
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x442863
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x24]
push edx
push 1
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x44278f
cmp dword [ebp - 0x24], 0
jne 0x4427a3
mov edx, dword [ebp - 4]
mov byte [edx], 0xd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x442863
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
movsx ecx, byte [eax + edx + 4]
and ecx, 0x48
je 0x44280b
movsx edx, byte [ebp - 0x19]
cmp edx, 0xa
jne 0x4427dd
mov eax, dword [ebp - 4]
mov byte [eax], 0xa
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x442809
mov edx, dword [ebp - 4]
mov byte [edx], 0xd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
mov cl, byte [ebp - 0x19]
mov byte [eax + edx + 5], cl
jmp 0x442863
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x18]
jne 0x44282d
movsx eax, byte [ebp - 0x19]
cmp eax, 0xa
jne 0x44282d
mov ecx, dword [ebp - 4]
mov byte [ecx], 0xa
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x442863
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00439a70
add esp, 0x10
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
movsx ecx, byte [ebp - 0x19]
cmp ecx, 0xa
je 0x442863
mov edx, dword [ebp - 4]
mov byte [edx], 0xd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x44261a
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
movsx edx, byte [ebp - 0xd]
cmp edx, 1
jne 0x442aa1
cmp dword [ebp - 0x14], 0
je 0x442aa1
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
and edx, 0x80
jne 0x4428ad
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x442a12
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movsx eax, byte [edx + 0x495f48]
test eax, eax
jne 0x4428e7
cmp dword [ebp - 0x30], 4
jg 0x4428e7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x18]
jb 0x4428e7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
jmp 0x4428b4
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movsx eax, byte [edx + 0x495f48]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x442914
call fcn.004166f0
mov dword [eax], 0x2a
mov dword [ebp - 0x38], 0xffffffff
jmp 0x442f2b
mov ecx, dword [ebp - 0x68]
add ecx, 1
cmp ecx, dword [ebp - 0x30]
jne 0x44292d
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
jmp 0x442a12
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x48
je 0x4429f0
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx]
mov byte [eax + edx + 5], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x30], 2
jl 0x4429af
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
add ecx, dword [eax*4 + 0x497458]
mov edx, 1
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ecx + edx + 0x25], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 3
jne 0x4429e5
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
add eax, dword [edx*4 + 0x497458]
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 4]
mov dl, byte [edx]
mov byte [eax + ecx + 0x25], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
jmp 0x442a12
push 1
mov eax, dword [ebp - 0x30]
neg eax
cdq
push edx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00439a70
add esp, 0x10
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x90]
shr ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x442a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004166c0
add esp, 4
mov dword [ebp - 0x38], 0xffffffff
jmp 0x442f2b
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edx
je 0x442a75
mov dword [ebp - 0x70], 1
jmp 0x442a7c
mov dword [ebp - 0x70], 0
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
mov eax, dword [ebp - 0x70]
mov dword [edx + ecx + 0x30], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x442f2b
cmp dword [ebp - 0x40], 0
je 0x442bbf
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax*2]
cmp dword [ebp - 0xc], edx
jae 0x442bad
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x1a
jne 0x442b20
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 4]
or edx, 2
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov eax, dword [eax*4 + 0x497458]
mov byte [eax + ecx + 4], dl
jmp 0x442bad
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0xd
je 0x442b4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x442ba8
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*2 - 2]
cmp dword [ebp - 0xc], eax
jae 0x442ba8
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
cmp edx, 0xa
jne 0x442b8a
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, 0xa
mov edx, dword [ebp - 8]
mov word [edx], cx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x442ba8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
jmp 0x442abc
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
sar eax, 1
shl eax, 1
mov dword [ebp - 0x14], eax
jmp 0x442f2b
cmp dword [ebp - 0x24], 0
je 0x442c0a
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0xa
jne 0x442c0a
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
or eax, 4
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov ecx, dword [ecx*4 + 0x497458]
mov byte [ecx + edx + 4], al
jmp 0x442c42
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
movsx edx, byte [ecx + eax + 4]
and edx, 0xfffffffb
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov eax, dword [eax*4 + 0x497458]
mov byte [eax + ecx + 4], dl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jae 0x442f22
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x1a
jne 0x442cee
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x40
jne 0x442cc6
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x497458]
movsx ecx, byte [eax + edx + 4]
or ecx, 2
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov edx, dword [edx*4 + 0x497458]
mov byte [edx + eax + 4], cl
jmp 0x442ce4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x442f22
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0xd
je 0x442d1c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
jmp 0x442f1d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax - 2]
cmp dword [ebp - 0xc], edx
jae 0x442d79
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
cmp ecx, 0xa
jne 0x442d56
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, 0xa
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
jmp 0x442d74
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x442f1d
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 2
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x497458]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x442dce
cmp dword [ebp - 0x24], 0
jne 0x442de7
mov eax, 0xd
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
jmp 0x442f1d
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
movsx eax, byte [edx + ecx + 4]
and eax, 0x48
je 0x442ebb
movzx ecx, word [ebp - 0x34]
cmp ecx, 0xa
jne 0x442e2d
mov edx, 0xa
mov eax, dword [ebp - 8]
mov word [eax], dx
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
jmp 0x442eb9
lea edx, [ebp - 0x34]
mov dword [ebp - 0x3c], edx
mov eax, 0xd
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x497458]
mov eax, dword [ebp - 0x3c]
mov al, byte [eax]
mov byte [edx + ecx + 5], al
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
add eax, dword [edx*4 + 0x497458]
mov ecx, 1
imul ecx, ecx, 0
mov edx, dword [ebp - 0x3c]
mov dl, byte [edx]
mov byte [eax + ecx + 0x25], dl
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
add ecx, dword [eax*4 + 0x497458]
mov edx, 1
shl edx, 0
mov byte [ecx + edx + 0x25], 0xa
jmp 0x442f1d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x442ee2
movzx ecx, word [ebp - 0x34]
cmp ecx, 0xa
jne 0x442ee2
mov edx, 0xa
mov eax, dword [ebp - 8]
mov word [eax], dx
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
jmp 0x442f1d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov edx, dword [ebp + 8]
push edx
call fcn.00439a70
add esp, 0x10
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
movzx eax, word [ebp - 0x34]
cmp eax, 0xa
je 0x442f1d
mov ecx, 0xd
mov edx, dword [ebp - 8]
mov word [edx], cx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x442c4e
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0xc]
je 0x442f3f
mov eax, dword [ebp - 0x18]
push eax
call fcn.004123e0
add esp, 4
cmp dword [ebp - 0x38], 0xfffffffe
jne 0x442f4d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x78], ecx
jmp 0x442f53
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
pop esi
mov esp, ebp
pop ebp
ret