Function at 0x42de50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
cmp byte [ecx + 0x30], 0
je 0x42de67
mov edi, dword [ecx + 0x2c]
jmp 0x42e395
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp edi, esi
je 0x42e1cd
mov dword [ebp - 0x30], ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x28], edi
push dword [edi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebx, eax
inc ebx
add edi, 4
cmp edi, esi
jne 0x42de7e
push ebx
call fcn.004484b7
add esp, 4
mov edi, eax
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], edi
mov ebx, edi
mov edi, dword [ebp - 0x28]
push dword [edi]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push dword [edi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebx, eax
inc ebx
add edi, 4
cmp edi, esi
jne 0x42deb1
sub esi, dword [ebp - 0x28]
mov edi, esi
sar edi, 2
xor ecx, ecx
dec ecx
mov eax, esi
add eax, 4
cmovb eax, ecx
mov byte [ebx], 0
test esi, esi
cmovs eax, ecx
push eax
call fcn.004484b7
add esp, 4
mov ebx, eax
mov dword [ebp - 0x24], edi
mov dword [eax], edi
add eax, 4
and esi, 0xfffffffc
push esi
push 0
mov dword [ebp - 0x28], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
push 0x49beea
push dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
je 0x42e1e2
mov edi, eax
push 2
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov esi, 6
test eax, eax
mov dword [ebp - 0x14], ebx
jne 0x42e213
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
test eax, eax
jle 0x42e213
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.004484b7
add esp, 4
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x42e207
push edi
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
mov eax, dword [ebp - 0x20]
jne 0x42e20a
mov byte [eax + ecx], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 0
mov esi, eax
mov dword [ebp - 0x10], edi
mov eax, esi
movzx ecx, byte [esi]
cmp ecx, 0xa
je 0x42dff6
cmp ecx, 0xd
je 0x42dff6
test ecx, ecx
je 0x42e1f9
lea edi, [eax + 1]
mov esi, edi
mov edx, ecx
cmp dl, 0xa
je 0x42dffb
movzx edx, dl
cmp edx, 0xd
je 0x42dffb
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x42dfde
xor esi, esi
jmp 0x42e001
inc eax
mov esi, eax
jmp 0x42dfc0
mov byte [esi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x42e15a
movzx edx, cl
cmp edx, 0x3b
je 0x42e15a
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x42e02b
cmp ebx, 9
je 0x42e030
jmp 0x42e037
cmp ebx, 0x20
jne 0x42e041
mov cl, byte [edi]
inc edi
inc edx
inc eax
jmp 0x42e01c
test ebx, ebx
je 0x42e15a
jmp 0x42e055
cmp ebx, 0x5b
jne 0x42e055
mov ecx, edi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x42e071
inc ecx
inc edx
inc eax
jmp 0x42e048
cmp byte [ebp - 0x18], 0
je 0x42e15a
lea eax, [edi - 1]
mov dword [ebp - 0x2c], eax
cmp cl, 0x3d
jne 0x42e095
mov cl, byte [eax + 1]
inc eax
inc edi
jmp 0x42e065
test ebx, ebx
jne 0x42e084
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x14]
jmp 0x42e126
cmp bl, 0x5d
je 0x42e0b0
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x42e084
jmp 0x42e0c8
movzx eax, cl
test eax, eax
je 0x42e15a
cmp cl, 0x3d
je 0x42e0d5
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x42e0a0
xor edi, edi
jmp 0x42e0d9
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x42e0c0
cmp ecx, 0x20
jne 0x42e0c4
inc edx
inc eax
jmp 0x42e0b3
test ecx, ecx
jne 0x42e136
mov eax, dword [ebp - 0x34]
test eax, eax
mov ebx, dword [ebp - 0x14]
je 0x42e110
push eax
jmp 0x42e115
mov byte [edi - 1], 0
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
je 0x42e15a
xor eax, eax
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
push ebx
push dword [ebp - 0x2c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x42e152
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebx, eax
inc ebx
mov eax, dword [ebp - 0x1c]
inc eax
cmp byte [ebx], 0
jne 0x42e0e6
jmp 0x42e15a
push 0x49945f
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x10]
test esi, esi
jne 0x42dfc0
jmp 0x42e1f9
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp cl, 9
je 0x42e16d
movzx ecx, cl
cmp ecx, 0x20
je 0x42e16d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e13c
jmp 0x42e171
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x24]
jb 0x42e17a
test esi, esi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jne 0x42dfc0
jmp 0x42e1f9
mov byte [eax - 1], 0
mov dword [ebp - 0x18], 0
jmp 0x42e129
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x2c], eax
push eax
call fcn.004484b7
add esp, 4
mov ebx, eax
push dword [ebp - 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x2c], ebx
mov dword [ecx + edx*4], ebx
test eax, eax
je 0x42e1bc
push eax
call fcn.004484c0
add esp, 4
push edi
push dword [ebp - 0x2c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
inc dword [ebp - 0x3c]
jmp 0x42e15a
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x2c], 0
xor edi, edi
jmp 0x42e395
xor eax, eax
inc eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 6
mov edi, 6
jmp 0x42e35c
xor eax, eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x24]
setne al
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004484c0
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
inc ecx
mov dword [eax + 0x30], ecx
mov edi, esi
mov dword [eax + 0x2c], esi
test esi, esi
jne 0x42e35c
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x42e2a2
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x42e29a
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
call fcn.004484b7
add esp, 4
mov esi, eax
push edi
mov edi, dword [ebp - 0x34]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x42e28e
push eax
call fcn.004484c0
add esp, 4
mov esi, dword [edi]
push dword [ebp - 0x24]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
add ebx, 8
cmp ebx, dword [ebp - 0x10]
jne 0x42e240
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x20], eax
xor edi, edi
cmp esi, eax
je 0x42e359
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x42e34b
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
xor edx, edx
push edx
push edx
xor edi, edi
dec edi
push edi
mov dword [ebp - 0x34], ecx
push ecx
push edx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebx, [eax + eax]
mov dword [ebp - 0x10], eax
test eax, eax
cmovs ebx, edi
push ebx
call fcn.004484b7
add esp, 4
mov edi, eax
push ebx
mov ebx, dword [ebp - 0x30]
xor eax, eax
push eax
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebx]
mov dword [ebx], edi
test eax, eax
je 0x42e325
push eax
call fcn.004484c0
add esp, 4
mov edi, dword [ebx]
push dword [ebp - 0x10]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x34]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov edi, dword [ebp - 0x24]
mov eax, 0x10
cmovle edi, eax
mov ebx, dword [ebp - 0x14]
add esi, 8
cmp esi, dword [ebp - 0x20]
jne 0x42e2bb
jmp 0x42e35c
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx]
test esi, esi
je 0x42e381
shl esi, 2
mov eax, dword [ebx + esi]
mov dword [ebx + esi], 0
test eax, eax
je 0x42e37c
push eax
call fcn.004484c0
add esp, 4
add esi, 0xfffffffc
jne 0x42e365
push ebx
call fcn.004484c0
add esp, 4
push dword [ebp - 0x38]
call fcn.004484c0
add esp, 4
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret