Function at 0x42ad81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push 0xfffffffffffffffe
pop eax
cmp ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jne 0x42adb8
call fcn.0041deec
and dword [eax], 0
call fcn.0041ded9
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x42b335
push esi
xor esi, esi
cmp ebx, esi
jl 0x42adc7
cmp ebx, dword [0x440648]
jb 0x42ade6
call fcn.0041deec
mov dword [eax], esi
call fcn.0041ded9
mov dword [eax], 9
call fcn.00421770
or eax, 0xffffffff
jmp 0x42b334
push edi
mov eax, ebx
sar eax, 5
and ebx, 0x1f
lea edi, [eax*4 + 0x440660]
shl ebx, 6
mov eax, dword [edi]
mov cl, byte [eax + ebx + 4]
test cl, 1
jne 0x42ae18
call fcn.0041deec
mov dword [eax], esi
call fcn.0041ded9
mov dword [eax], 9
jmp 0x42ae80
cmp edx, 0x7fffffff
ja 0x42ae6e
mov dword [ebp - 0xc], esi
cmp edx, esi
je 0x42b331
test cl, 2
jne 0x42b331
cmp dword [ebp + 0xc], esi
je 0x42ae6e
mov al, byte [eax + ebx + 0x24]
add al, al
sar al, 1
mov byte [ebp - 2], al
push 4
pop ecx
movsx eax, al
dec eax
je 0x42ae66
dec eax
jne 0x42ae5e
mov eax, edx
not eax
test al, 1
je 0x42ae6e
and edx, 0xfffffffe
mov dword [ebp + 0x10], edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
jmp 0x42aee0
mov eax, edx
not eax
test al, 1
jne 0x42ae87
call fcn.0041deec
mov dword [eax], esi
call fcn.0041ded9
mov dword [eax], 0x16
call fcn.00421770
jmp 0x42aebd
mov dword [ebp + 0x10], ecx
mov eax, edx
shr eax, 1
cmp eax, ecx
jb 0x42ae95
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
call fcn.0041e6e9
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x42aec5
call fcn.0041ded9
mov dword [eax], 0xc
call fcn.0041deec
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x42b333
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00424754
add esp, 0x10
mov ecx, dword [edi]
mov dword [ebx + ecx + 0x28], eax
mov dword [ebx + ecx + 0x2c], edx
mov eax, esi
mov ecx, dword [edi]
add ecx, ebx
test byte [ecx + 4], 0x48
je 0x42af66
mov cl, byte [ecx + 5]
cmp cl, 0xa
je 0x42af66
cmp dword [ebp + 0x10], 0
je 0x42af66
lea eax, [esi + 1]
dec dword [ebp + 0x10]
cmp byte [ebp - 2], 0
mov byte [esi], cl
mov ecx, dword [edi]
mov dword [ebp - 0xc], 1
mov byte [ebx + ecx + 5], 0xa
je 0x42af66
mov ecx, dword [edi]
mov cl, byte [ebx + ecx + 0x25]
cmp cl, 0xa
je 0x42af66
cmp dword [ebp + 0x10], 0
je 0x42af66
mov byte [eax], cl
inc eax
mov ecx, dword [edi]
dec dword [ebp + 0x10]
cmp byte [ebp - 2], 1
mov dword [ebp - 0xc], 2
mov byte [ebx + ecx + 0x25], 0xa
jne 0x42af66
mov ecx, dword [edi]
mov cl, byte [ebx + ecx + 0x26]
cmp cl, 0xa
je 0x42af66
cmp dword [ebp + 0x10], 0
je 0x42af66
mov byte [eax], cl
inc eax
mov ecx, dword [edi]
dec dword [ebp + 0x10]
mov dword [ebp - 0xc], 3
mov byte [ebx + ecx + 0x26], 0xa
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push eax
mov eax, dword [edi]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x42b2fb
mov ecx, dword [ebp - 0x18]
or ecx, ecx
js 0x42b2fb
cmp ecx, dword [ebp + 0x10]
ja 0x42b2fb
mov eax, dword [edi]
lea eax, [ebx + eax + 4]
add dword [ebp - 0xc], ecx
test byte [eax], 0x80
je 0x42b18d
cmp byte [ebp - 2], 2
je 0x42b1c7
or ecx, ecx
je 0x42afc1
cmp byte [esi], 0xa
jne 0x42afc1
or byte [eax], 4
jmp 0x42afc4
and byte [eax], 0xfb
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp + 0x10], esi
cmp esi, eax
mov dword [ebp - 0xc], eax
jae 0x42b0ab
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x1a
je 0x42b096
cmp al, 0xd
je 0x42aff7
mov byte [esi], al
inc esi
inc ecx
mov dword [ebp + 0x10], ecx
jmp 0x42b088
mov eax, dword [ebp - 0xc]
dec eax
cmp ecx, eax
jae 0x42b017
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x42b012
add ecx, 2
mov dword [ebp + 0x10], ecx
mov byte [esi], 0xa
jmp 0x42b087
mov dword [ebp + 0x10], eax
jmp 0x42b084
lea eax, [ebp - 0x18]
inc dword [ebp + 0x10]
push 0
push eax
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
jne 0x42b03f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42b084
cmp dword [ebp - 0x18], 0
je 0x42b084
mov eax, dword [edi]
test byte [ebx + eax + 4], 0x48
je 0x42b062
cmp byte [ebp - 1], 0xa
je 0x42b00d
mov byte [esi], 0xd
mov eax, dword [edi]
mov cl, byte [ebp - 1]
mov byte [ebx + eax + 5], cl
jmp 0x42b087
cmp esi, dword [ebp - 0x10]
jne 0x42b06d
cmp byte [ebp - 1], 0xa
je 0x42b00d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00424754
sub esp, 0xfffffff0
cmp byte [ebp - 1], 0xa
je 0x42b088
mov byte [esi], 0xd
inc esi
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x42afda
jmp 0x42b0ab
mov eax, dword [edi]
lea eax, [ebx + eax + 4]
test byte [eax], 0x40
jne 0x42b0a6
or byte [eax], 2
jmp 0x42b0ab
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov eax, esi
sub eax, dword [ebp - 0x10]
cmp byte [ebp - 2], 1
mov dword [ebp - 0xc], eax
jne 0x42b18d
or eax, eax
je 0x42b18d
dec esi
mov cl, byte [esi]
or cl, cl
js 0x42b0d2
inc esi
jmp 0x42b158
movzx ecx, cl
xor eax, eax
inc eax
jmp 0x42b0e9
cmp eax, 4
jg 0x42b0f2
cmp esi, dword [ebp - 0x10]
jb 0x42b0f2
dec esi
movzx ecx, byte [esi]
inc eax
cmp byte [ecx + 0x43ee70], 0
je 0x42b0da
mov dl, byte [esi]
movzx ecx, dl
movsx ecx, byte [ecx + 0x43ee70]
test ecx, ecx
jne 0x42b10f
call fcn.0041ded9
mov dword [eax], 0x2a
jmp 0x42b189
inc ecx
cmp ecx, eax
jne 0x42b118
add esi, eax
jmp 0x42b158
mov ecx, dword [edi]
test byte [ecx + ebx + 4], 0x48
je 0x42b146
inc esi
cmp eax, 2
mov byte [ecx + ebx + 5], dl
jl 0x42b134
mov ecx, dword [edi]
mov dl, byte [esi]
mov byte [ebx + ecx + 0x25], dl
inc esi
cmp eax, 3
jne 0x42b142
mov ecx, dword [edi]
mov dl, byte [esi]
inc esi
mov byte [ebx + ecx + 0x26], dl
sub esi, eax
jmp 0x42b158
neg eax
cdq
push 1
push edx
push eax
push dword [ebp + 8]
call fcn.00424754
add esp, 0x10
mov eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x10]
shr eax, 1
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
or eax, eax
mov dword [ebp - 0xc], eax
jne 0x42b1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041deff
pop ecx
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x42b19c
push eax
call fcn.0041bb31
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x42b333
mov eax, dword [ebp - 0xc]
jmp 0x42b333
xor ecx, ecx
mov eax, dword [ebp - 0xc]
cmp eax, esi
setne cl
mov edx, dword [edi]
add eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebx + edx + 0x30], ecx
jmp 0x42b18d
test ecx, ecx
je 0x42b1d6
cmp word [esi], 0xa
jne 0x42b1d6
or byte [eax], 4
jmp 0x42b1d9
and byte [eax], 0xfb
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dword [ebp + 0x10], esi
add eax, esi
cmp esi, eax
mov dword [ebp - 0xc], eax
jae 0x42b2f0
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp ecx, 0x1a
je 0x42b2d7
cmp ecx, 0xd
je 0x42b214
mov word [esi], cx
sub esi, 0xfffffffe
add eax, 2
mov dword [ebp + 0x10], eax
jmp 0x42b2c9
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffffe
cmp eax, ecx
jae 0x42b23c
lea ecx, [eax + 2]
cmp word [ecx], 0xa
jne 0x42b234
add eax, 4
mov dword [ebp + 0x10], eax
push 0xa
jmp 0x42b2c2
mov dword [ebp + 0x10], ecx
jmp 0x42b2c0
lea eax, [ebp - 0x18]
add dword [ebp + 0x10], 2
push 0
push eax
lea eax, [ebp - 8]
push 2
push eax
mov eax, dword [edi]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b265
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42b2c0
cmp dword [ebp - 0x18], 0
je 0x42b2c0
mov eax, dword [edi]
test byte [ebx + eax + 4], 0x48
je 0x42b29c
cmp word [ebp - 8], 0xa
je 0x42b22d
push 0xd
pop eax
mov word [esi], ax
mov cl, byte [ebp - 8]
mov eax, dword [edi]
mov byte [ebx + eax + 5], cl
mov cl, byte [ebp - 7]
mov eax, dword [edi]
mov byte [ebx + eax + 0x25], cl
mov eax, dword [edi]
mov byte [ebx + eax + 0x26], 0xa
jmp 0x42b2c6
cmp esi, dword [ebp - 0x10]
jne 0x42b2a8
cmp word [ebp - 8], 0xa
je 0x42b22d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00424754
add esp, 0x10
cmp word [ebp - 8], 0xa
je 0x42b2c9
push 0xd
pop eax
mov word [esi], ax
sub esi, 0xfffffffe
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x42b1ef
jmp 0x42b2f0
mov ecx, dword [edi]
lea ebx, [ebx + ecx + 4]
test byte [ebx], 0x40
jne 0x42b2e7
or byte [ebx], 2
jmp 0x42b2f0
mov ax, word [eax]
mov word [esi], ax
sub esi, 0xfffffffe
sub esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
jmp 0x42b18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42b31f
call fcn.0041ded9
mov dword [eax], 9
call fcn.0041deec
mov dword [eax], esi
jmp 0x42b189
cmp eax, 0x6d
jne 0x42b182
and dword [ebp - 0x14], 0
jmp 0x42b18d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret