Function at 0x429930
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 0x429947
mov edi, dword [ecx + 0x2c]
jmp 0x429e75
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp edi, esi
je 0x429cad
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 0x42995e
push ebx
call fcn.0044fa57
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 0x429991
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.0044fa57
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 0x49a9e2
push dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
je 0x429cc2
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 0x429cf3
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
test eax, eax
jle 0x429cf3
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.0044fa57
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 0x429ce7
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 0x429cea
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 0x429ad6
cmp ecx, 0xd
je 0x429ad6
test ecx, ecx
je 0x429cd9
lea edi, [eax + 1]
mov esi, edi
mov edx, ecx
cmp dl, 0xa
je 0x429adb
movzx edx, dl
cmp edx, 0xd
je 0x429adb
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x429abe
xor esi, esi
jmp 0x429ae1
inc eax
mov esi, eax
jmp 0x429aa0
mov byte [esi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x429c3a
movzx edx, cl
cmp edx, 0x3b
je 0x429c3a
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x429b0b
cmp ebx, 9
je 0x429b10
jmp 0x429b17
cmp ebx, 0x20
jne 0x429b21
mov cl, byte [edi]
inc edi
inc edx
inc eax
jmp 0x429afc
test ebx, ebx
je 0x429c3a
jmp 0x429b35
cmp ebx, 0x5b
jne 0x429b35
mov ecx, edi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x429b51
inc ecx
inc edx
inc eax
jmp 0x429b28
cmp byte [ebp - 0x18], 0
je 0x429c3a
lea eax, [edi - 1]
mov dword [ebp - 0x2c], eax
cmp cl, 0x3d
jne 0x429b75
mov cl, byte [eax + 1]
inc eax
inc edi
jmp 0x429b45
test ebx, ebx
jne 0x429b64
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x14]
jmp 0x429c06
cmp bl, 0x5d
je 0x429b90
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x429b64
jmp 0x429ba8
movzx eax, cl
test eax, eax
je 0x429c3a
cmp cl, 0x3d
je 0x429bb5
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x429b80
xor edi, edi
jmp 0x429bb9
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x429ba0
cmp ecx, 0x20
jne 0x429ba4
inc edx
inc eax
jmp 0x429b93
test ecx, ecx
jne 0x429c16
mov eax, dword [ebp - 0x34]
test eax, eax
mov ebx, dword [ebp - 0x14]
je 0x429bf0
push eax
jmp 0x429bf5
mov byte [edi - 1], 0
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
je 0x429c3a
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 0x429c32
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 0x429bc6
jmp 0x429c3a
push 0x4980df
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 0x429aa0
jmp 0x429cd9
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp cl, 9
je 0x429c4d
movzx ecx, cl
cmp ecx, 0x20
je 0x429c4d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429c1c
jmp 0x429c51
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x24]
jb 0x429c5a
test esi, esi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jne 0x429aa0
jmp 0x429cd9
mov byte [eax - 1], 0
mov dword [ebp - 0x18], 0
jmp 0x429c09
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.0044fa57
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 0x429c9c
push eax
call fcn.0044fa60
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 0x429c3a
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x2c], 0
xor edi, edi
jmp 0x429e75
xor eax, eax
inc eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 6
mov edi, 6
jmp 0x429e3c
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.0044fa60
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 0x429e3c
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x429d82
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x429d7a
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.0044fa57
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 0x429d6e
push eax
call fcn.0044fa60
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 0x429d20
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 0x429e39
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x429e2b
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.0044fa57
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 0x429e05
push eax
call fcn.0044fa60
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 0x429d9b
jmp 0x429e3c
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx]
test esi, esi
je 0x429e61
shl esi, 2
mov eax, dword [ebx + esi]
mov dword [ebx + esi], 0
test eax, eax
je 0x429e5c
push eax
call fcn.0044fa60
add esp, 4
add esi, 0xfffffffc
jne 0x429e45
push ebx
call fcn.0044fa60
add esp, 4
push dword [ebp - 0x38]
call fcn.0044fa60
add esp, 4
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret