Function at 0x429d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x4b5c84
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, 0xffffffff
mov dword [ebp - 4], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044ebb0
test eax, eax
mov ebx, eax
je 0x429d60
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x429d4d
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, dword [ebp - 8]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x42a091
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea esi, [eax + eax]
mov edx, esi
sar edx, 1
cmp esi, 0xe
mov dword [ebp - 0x48], edx
ja 0x429f40
mov edi, dword [ebp - 0x30]
cmp edx, 1
je 0x429f00
test edx, edx
je 0x429db2
mov ecx, esi
mov esi, dword [ebp + 8]
cmp ecx, 8
jae 0x429fa8
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov word [edi + eax*2], 0
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.0044f3a0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmp eax, ecx
je 0x429ded
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.004a2230
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea esi, [eax + eax]
mov edi, esi
sar edi, 1
cmp esi, 0xe
mov dword [ebp - 0x48], edi
ja 0x429f10
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x6c], ecx
cmp edi, 1
je 0x429ef0
test edi, edi
je 0x429e3c
mov ecx, esi
mov edi, eax
mov esi, dword [ebp + 8]
cmp ecx, 8
jae 0x429f70
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], edx
mov word [eax + edx*2], 0
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.0044f310
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmp eax, ecx
je 0x429e77
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.004a2230
mov edi, dword [ebp - 0x60]
mov eax, 0xa
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_wcstoul
mov edx, dword [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x429ea8
cmp word [eax], 0
je 0x429fe0
lea eax, [ebp - 0x40]
cmp edx, eax
je 0x429ec2
mov eax, dword [ebp - 0x40]
mov dword [esp], edx
lea eax, [eax + eax + 2]
mov dword [esp + 4], eax
call fcn.004a2230
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
cmp eax, edx
je 0x429d41
mov edx, dword [ebp - 0x58]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.004a2230
jmp 0x429d41
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
mov word [eax], dx
jmp 0x429e3c
mov eax, dword [ebp + 8]
movzx eax, word [eax]
mov word [edi], ax
jmp 0x429db2
lea ecx, [ebp - 0x30]
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov dword [esp], eax
call fcn.0049c730
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x48]
sub esp, 8
mov dword [ebp - 0x28], edx
jmp 0x429e1a
mov dword [ebp - 0x6c], edx
lea ecx, [ebp - 0x30]
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0049c730
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x30], eax
mov edi, eax
mov eax, dword [ebp - 0x48]
sub esp, 8
mov dword [ebp - 0x28], eax
jmp 0x429d92
test al, 1
jne 0x42a058
test edi, 2
jne 0x42a043
test edi, 4
je 0x429e37
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x429e37
test edi, 1
jne 0x42a07b
test edi, 2
jne 0x42a066
test edi, 4
je 0x429dad
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x429dad
mov dword [esp], edx
mov edi, 0x4b5c84
mov dword [esp + 4], edi
call fcn.0044ebb0
test eax, eax
mov edi, eax
je 0x42a037
mov dword [esp + 0xc], eax
mov edx, 2
mov ecx, 1
mov dword [esp + 8], edx
lea eax, [ebp - 0x62]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 2
jne 0x42a02f
movzx eax, word [ebp - 0x62]
cmp eax, 0x5a4d
je 0x42a03f
cmp eax, 0x4d5a
je 0x42a03f
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov edx, dword [ebp - 0x48]
jmp 0x429ea8
mov ebx, edi
jmp 0x42a037
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x429f84
movzx eax, byte [esi]
inc edi
inc esi
dec ecx
mov byte [edi - 1], al
jmp 0x429f78
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x429fc0
movzx eax, byte [esi]
inc edi
dec ecx
mov byte [ebp - 0x6c], al
mov byte [edi - 1], al
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
jmp 0x429fb4
mov dword [esp], 0x4b5c88
call fcn.004a63f4
mov ebx, eax
jmp 0x4a4cb0