Function at 0x403260
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7b4
mov eax, dword [0x4c1280]
xor eax, esp
mov dword [esp + 0x7b0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], esi
test esi, esi
jne 0x4032a1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7b0]
xor ecx, esp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x18]
call fcn.0040b370
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], 0
mov edi, 5
jmp 0x4032c4
mov esi, dword [esp + 0xc]
push 0x20
push 0x4b15ec
push esi
call fcn.004754fb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40332e
lea eax, [esp + 0x10]
push eax
call fcn.0047a3a9
add esp, 4
cmp dword [esp + 0x10], 0xd
jne 0x4032fa
push 0x3e8
call ebx
dec edi
test edi, edi
jg 0x4032c0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
push str.open__s_error:_d_n
lea eax, [esp + 0x56c]
push 0x12c
push eax
call fcn.00474cf2
add esp, 0x14
lea ecx, [esp + 0x560]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x403397
push 0x22c
lea edx, [esp + 0x28]
push 0
push edx
mov dword [esp + 0x2c], 0
call fcn.00472990
push esi
push 1
lea eax, [esp + 0x34]
push 0x230
push eax
call fcn.0047a301
add esp, 0x1c
cmp eax, 1
je 0x4033db
mov ecx, dword [esp + 0xc]
push ecx
push str.fread__s_error_n
lea edx, [esp + 0x568]
push 0x12c
push edx
call fcn.00474cf2
add esp, 0x10
lea eax, [esp + 0x560]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00474bde
add esp, 4
cmp dword [esp + 0x18], 0
je 0x4033c0
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4033c0
mov ecx, dword [esp + 0x1c]
push ecx
call eax
mov ecx, dword [esp + 0x7bc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00474bde
push 0x103
lea ecx, [esp + 0x461]
push 0
push ecx
mov byte [esp + 0x468], 0
call fcn.00472990
lea eax, [esp + 0x468]
call fcn.00402800
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x264]
push eax
call fcn.00469520
push 0x230
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x274]
push eax
call fcn.00469660
mov eax, dword [esp + 0x48]
add esp, 0x28
cmp eax, 0x53595348
je 0x40352d
cmp eax, 0x4d414749
je 0x40352d
cmp eax, 0x5453464c
je 0x40352d
cmp eax, 0x54535053
je 0x40352d
cmp eax, 0x54535750
je 0x40352d
cmp eax, 0x5054464c
je 0x40352d
cmp eax, 0x50544452
je 0x40352d
cmp eax, 0x50544547
je 0x40352d
cmp eax, 0x41555550
je 0x40352d
cmp eax, 0x4953504b
je 0x40352d
cmp eax, 0x41434345
je 0x40352d
cmp eax, 0x50544553
je 0x40352d
cmp eax, 0x50534143
je 0x40352d
cmp eax, 0x50534153
je 0x40352d
cmp eax, 0x50544558
je 0x40352d
cmp eax, 0x45585445
je 0x40352d
cmp eax, 0x5054464f
je 0x40352d
cmp eax, 0x464f4558
je 0x40352d
cmp eax, 0x50534558
je 0x40352d
cmp eax, 0x56495255
je 0x40352d
cmp eax, 0x4348454b
je 0x40352d
mov ecx, dword [esp + 0xc]
push eax
push ecx
push str._s_error_magic:0x_x_n
lea edx, [esp + 0x56c]
push 0x12c
push edx
call fcn.00474cf2
add esp, 0x14
lea eax, [esp + 0x560]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x403397
mov dword [esp + 0x14], 1
jmp 0x403397