Function at 0x4298b0
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 0x4298c7
mov edi, dword [ecx + 0x2c]
jmp 0x429df5
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp edi, esi
je 0x429c2d
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 0x4298de
push ebx
call fcn.0044faf7
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 0x429911
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.0044faf7
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 0x4999dc
push dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
je 0x429c42
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 0x429c73
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
test eax, eax
jle 0x429c73
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.0044faf7
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 0x429c67
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 0x429c6a
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 0x429a56
cmp ecx, 0xd
je 0x429a56
test ecx, ecx
je 0x429c59
lea edi, [eax + 1]
mov esi, edi
mov edx, ecx
cmp dl, 0xa
je 0x429a5b
movzx edx, dl
cmp edx, 0xd
je 0x429a5b
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x429a3e
xor esi, esi
jmp 0x429a61
inc eax
mov esi, eax
jmp 0x429a20
mov byte [esi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x429bba
movzx edx, cl
cmp edx, 0x3b
je 0x429bba
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x429a8b
cmp ebx, 9
je 0x429a90
jmp 0x429a97
cmp ebx, 0x20
jne 0x429aa1
mov cl, byte [edi]
inc edi
inc edx
inc eax
jmp 0x429a7c
test ebx, ebx
je 0x429bba
jmp 0x429ab5
cmp ebx, 0x5b
jne 0x429ab5
mov ecx, edi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x429ad1
inc ecx
inc edx
inc eax
jmp 0x429aa8
cmp byte [ebp - 0x18], 0
je 0x429bba
lea eax, [edi - 1]
mov dword [ebp - 0x2c], eax
cmp cl, 0x3d
jne 0x429af5
mov cl, byte [eax + 1]
inc eax
inc edi
jmp 0x429ac5
test ebx, ebx
jne 0x429ae4
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x14]
jmp 0x429b86
cmp bl, 0x5d
je 0x429b10
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x429ae4
jmp 0x429b28
movzx eax, cl
test eax, eax
je 0x429bba
cmp cl, 0x3d
je 0x429b35
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x429b00
xor edi, edi
jmp 0x429b39
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x429b20
cmp ecx, 0x20
jne 0x429b24
inc edx
inc eax
jmp 0x429b13
test ecx, ecx
jne 0x429b96
mov eax, dword [ebp - 0x34]
test eax, eax
mov ebx, dword [ebp - 0x14]
je 0x429b70
push eax
jmp 0x429b75
mov byte [edi - 1], 0
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
je 0x429bba
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 0x429bb2
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 0x429b46
jmp 0x429bba
push 0x4970df
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 0x429a20
jmp 0x429c59
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp cl, 9
je 0x429bcd
movzx ecx, cl
cmp ecx, 0x20
je 0x429bcd
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429b9c
jmp 0x429bd1
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x24]
jb 0x429bda
test esi, esi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jne 0x429a20
jmp 0x429c59
mov byte [eax - 1], 0
mov dword [ebp - 0x18], 0
jmp 0x429b89
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.0044faf7
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 0x429c1c
push eax
call fcn.0044fb00
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 0x429bba
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x2c], 0
xor edi, edi
jmp 0x429df5
xor eax, eax
inc eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 6
mov edi, 6
jmp 0x429dbc
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.0044fb00
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 0x429dbc
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x429d02
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x429cfa
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.0044faf7
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 0x429cee
push eax
call fcn.0044fb00
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 0x429ca0
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 0x429db9
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x429dab
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.0044faf7
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 0x429d85
push eax
call fcn.0044fb00
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 0x429d1b
jmp 0x429dbc
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx]
test esi, esi
je 0x429de1
shl esi, 2
mov eax, dword [ebx + esi]
mov dword [ebx + esi], 0
test eax, eax
je 0x429ddc
push eax
call fcn.0044fb00
add esp, 4
add esi, 0xfffffffc
jne 0x429dc5
push ebx
call fcn.0044fb00
add esp, 4
push dword [ebp - 0x38]
call fcn.0044fb00
add esp, 4
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret