Function at 0x429800
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 0x429817
mov edi, dword [ecx + 0x2c]
jmp 0x429d45
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp edi, esi
je 0x429b7d
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 0x42982e
push ebx
call fcn.0044f117
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 0x429861
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.0044f117
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 0x49afc6
push dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
je 0x429b92
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 0x429bc3
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
test eax, eax
jle 0x429bc3
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.0044f117
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 0x429bb7
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 0x429bba
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 0x4299a6
cmp ecx, 0xd
je 0x4299a6
test ecx, ecx
je 0x429ba9
lea edi, [eax + 1]
mov esi, edi
mov edx, ecx
cmp dl, 0xa
je 0x4299ab
movzx edx, dl
cmp edx, 0xd
je 0x4299ab
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x42998e
xor esi, esi
jmp 0x4299b1
inc eax
mov esi, eax
jmp 0x429970
mov byte [esi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x429b0a
movzx edx, cl
cmp edx, 0x3b
je 0x429b0a
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x4299db
cmp ebx, 9
je 0x4299e0
jmp 0x4299e7
cmp ebx, 0x20
jne 0x4299f1
mov cl, byte [edi]
inc edi
inc edx
inc eax
jmp 0x4299cc
test ebx, ebx
je 0x429b0a
jmp 0x429a05
cmp ebx, 0x5b
jne 0x429a05
mov ecx, edi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x429a21
inc ecx
inc edx
inc eax
jmp 0x4299f8
cmp byte [ebp - 0x18], 0
je 0x429b0a
lea eax, [edi - 1]
mov dword [ebp - 0x2c], eax
cmp cl, 0x3d
jne 0x429a45
mov cl, byte [eax + 1]
inc eax
inc edi
jmp 0x429a15
test ebx, ebx
jne 0x429a34
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x14]
jmp 0x429ad6
cmp bl, 0x5d
je 0x429a60
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x429a34
jmp 0x429a78
movzx eax, cl
test eax, eax
je 0x429b0a
cmp cl, 0x3d
je 0x429a85
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x429a50
xor edi, edi
jmp 0x429a89
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x429a70
cmp ecx, 0x20
jne 0x429a74
inc edx
inc eax
jmp 0x429a63
test ecx, ecx
jne 0x429ae6
mov eax, dword [ebp - 0x34]
test eax, eax
mov ebx, dword [ebp - 0x14]
je 0x429ac0
push eax
jmp 0x429ac5
mov byte [edi - 1], 0
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
je 0x429b0a
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 0x429b02
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 0x429a96
jmp 0x429b0a
push 0x49853f
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 0x429970
jmp 0x429ba9
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp cl, 9
je 0x429b1d
movzx ecx, cl
cmp ecx, 0x20
je 0x429b1d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429aec
jmp 0x429b21
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x24]
jb 0x429b2a
test esi, esi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jne 0x429970
jmp 0x429ba9
mov byte [eax - 1], 0
mov dword [ebp - 0x18], 0
jmp 0x429ad9
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.0044f117
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 0x429b6c
push eax
call fcn.0044f120
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 0x429b0a
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x2c], 0
xor edi, edi
jmp 0x429d45
xor eax, eax
inc eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 6
mov edi, 6
jmp 0x429d0c
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.0044f120
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 0x429d0c
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x429c52
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x429c4a
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.0044f117
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 0x429c3e
push eax
call fcn.0044f120
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 0x429bf0
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 0x429d09
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x429cfb
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.0044f117
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 0x429cd5
push eax
call fcn.0044f120
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 0x429c6b
jmp 0x429d0c
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx]
test esi, esi
je 0x429d31
shl esi, 2
mov eax, dword [ebx + esi]
mov dword [ebx + esi], 0
test eax, eax
je 0x429d2c
push eax
call fcn.0044f120
add esp, 4
add esi, 0xfffffffc
jne 0x429d15
push ebx
call fcn.0044f120
add esp, 4
push dword [ebp - 0x38]
call fcn.0044f120
add esp, 4
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret