Function at 0x429840
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 0x429857
mov edi, dword [ecx + 0x2c]
jmp 0x429d85
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp edi, esi
je 0x429bbd
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 0x42986e
push ebx
call fcn.0044fa47
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 0x4298a1
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.0044fa47
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 0x4999e2
push dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
je 0x429bd2
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 0x429c03
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
test eax, eax
jle 0x429c03
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.0044fa47
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 0x429bf7
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 0x429bfa
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 0x4299e6
cmp ecx, 0xd
je 0x4299e6
test ecx, ecx
je 0x429be9
lea edi, [eax + 1]
mov esi, edi
mov edx, ecx
cmp dl, 0xa
je 0x4299eb
movzx edx, dl
cmp edx, 0xd
je 0x4299eb
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x4299ce
xor esi, esi
jmp 0x4299f1
inc eax
mov esi, eax
jmp 0x4299b0
mov byte [esi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x429b4a
movzx edx, cl
cmp edx, 0x3b
je 0x429b4a
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x429a1b
cmp ebx, 9
je 0x429a20
jmp 0x429a27
cmp ebx, 0x20
jne 0x429a31
mov cl, byte [edi]
inc edi
inc edx
inc eax
jmp 0x429a0c
test ebx, ebx
je 0x429b4a
jmp 0x429a45
cmp ebx, 0x5b
jne 0x429a45
mov ecx, edi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x429a61
inc ecx
inc edx
inc eax
jmp 0x429a38
cmp byte [ebp - 0x18], 0
je 0x429b4a
lea eax, [edi - 1]
mov dword [ebp - 0x2c], eax
cmp cl, 0x3d
jne 0x429a85
mov cl, byte [eax + 1]
inc eax
inc edi
jmp 0x429a55
test ebx, ebx
jne 0x429a74
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x14]
jmp 0x429b16
cmp bl, 0x5d
je 0x429aa0
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x429a74
jmp 0x429ab8
movzx eax, cl
test eax, eax
je 0x429b4a
cmp cl, 0x3d
je 0x429ac5
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x429a90
xor edi, edi
jmp 0x429ac9
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x429ab0
cmp ecx, 0x20
jne 0x429ab4
inc edx
inc eax
jmp 0x429aa3
test ecx, ecx
jne 0x429b26
mov eax, dword [ebp - 0x34]
test eax, eax
mov ebx, dword [ebp - 0x14]
je 0x429b00
push eax
jmp 0x429b05
mov byte [edi - 1], 0
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
je 0x429b4a
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 0x429b42
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 0x429ad6
jmp 0x429b4a
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 0x4299b0
jmp 0x429be9
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp cl, 9
je 0x429b5d
movzx ecx, cl
cmp ecx, 0x20
je 0x429b5d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429b2c
jmp 0x429b61
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x24]
jb 0x429b6a
test esi, esi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jne 0x4299b0
jmp 0x429be9
mov byte [eax - 1], 0
mov dword [ebp - 0x18], 0
jmp 0x429b19
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.0044fa47
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 0x429bac
push eax
call fcn.0044fa50
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 0x429b4a
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x2c], 0
xor edi, edi
jmp 0x429d85
xor eax, eax
inc eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 6
mov edi, 6
jmp 0x429d4c
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.0044fa50
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 0x429d4c
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x429c92
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x429c8a
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.0044fa47
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 0x429c7e
push eax
call fcn.0044fa50
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 0x429c30
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 0x429d49
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x429d3b
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.0044fa47
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 0x429d15
push eax
call fcn.0044fa50
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 0x429cab
jmp 0x429d4c
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx]
test esi, esi
je 0x429d71
shl esi, 2
mov eax, dword [ebx + esi]
mov dword [ebx + esi], 0
test eax, eax
je 0x429d6c
push eax
call fcn.0044fa50
add esp, 4
add esi, 0xfffffffc
jne 0x429d55
push ebx
call fcn.0044fa50
add esp, 4
push dword [ebp - 0x38]
call fcn.0044fa50
add esp, 4
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret