Function at 0x401be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4172ad
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x4a0], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x4a8], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4ac], eax
xor eax, eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x18], eax
push 0xfffe
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x49c], esi
test esi, esi
jne 0x401c7d
lea esi, [ebx + 0xe]
jmp 0x401fd9
push edi
push 0x7fff
push esi
call fcn.004084bd
add esp, 0xc
push 0x41de98
push 0x7fff
push esi
call fcn.00408521
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
push esi
call fcn.00406466
mov edi, eax
add esp, 8
mov dword [ebp - 0x488], edi
cmp edi, 0xffffffff
jne 0x401cc8
call fcn.0040860f
mov esi, dword [eax]
jmp 0x401fd9
xor eax, eax
or esi, 0xffffffff
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x484], eax
nop dword [eax]
lea eax, [ebp - 0x250]
push eax
push edi
call fcn.00406471
add esp, 8
test eax, eax
jne 0x401d6d
test dword [ebp - 0x250], 0x10
jne 0x401ce0
cmp ebx, dword [ebp - 0x498]
je 0x401d2e
mov edi, ebx
lea esi, [ebp - 0x250]
mov ecx, 0x8c
add ebx, 0x230
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x490]
mov edi, dword [ebp - 0x488]
mov dword [ebp - 0x1c], ebx
jmp 0x401d4a
lea eax, [ebp - 0x250]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.004027b0
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x498], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x228]
push eax
call fcn.00406644
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x484]
cmove esi, eax
inc eax
jmp 0x401ccd
push edi
call fcn.00406440
add esp, 4
cmp esi, 0xffffffff
jne 0x401d9b
push str.The_Run_file_was_not_found.
call fcn.00401480
mov eax, dword [ebp - 0x20]
add esp, 4
mov esi, 2
mov dword [ebp - 0x48c], eax
jmp 0x401fd9
mov ecx, dword [ebp - 0x20]
mov eax, 0xea0ea0eb
sub ebx, ecx
mov dword [ebp - 0x48c], ecx
imul ebx
xor edi, edi
add edx, ebx
sar edx, 9
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 0x488], ebx
je 0x401e0c
lea edx, [ecx + 0x20]
xor esi, esi
nop dword [eax + eax]
lea ecx, [edx + 8]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401dd6
mov eax, dword [edx]
sub ecx, edi
sar ecx, 1
add esi, 2
add edx, 0x230
lea eax, [eax + ecx*2]
add esi, eax
sub ebx, 1
jne 0x401dd0
mov ebx, dword [ebp - 0x488]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x490]
mov edi, dword [ebp - 0x14]
lea eax, [ebx*8 + 0xc]
add eax, edi
push eax
push 8
mov dword [ebp - 0x4a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x401e3d
lea esi, [eax + 0xe]
jmp 0x401fd9
lea edi, [eax + 4]
mov dword [eax], 0x15f961c
mov eax, dword [ebp - 0x484]
mov dword [edi], eax
mov dword [edi + 4], esi
add edi, 8
test ebx, ebx
je 0x401f74
mov ebx, dword [ebp - 0x48c]
mov eax, dword [ebp - 0x488]
add ebx, 0x28
mov dword [ebp - 0x484], eax
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401e76
sub esi, ecx
sar esi, 1
lea esi, [esi*2 + 2]
push esi
push ebx
push edi
call fcn.004059d0
mov eax, dword [ebx - 8]
add edi, esi
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebx - 4]
add ebx, 0x230
mov dword [edi + 4], eax
add edi, 8
sub dword [ebp - 0x484], 1
jne 0x401e71
mov ebx, dword [ebp - 0x48c]
add ebx, 0x20
mov dword [ebp - 0x484], 0
nop dword [eax]
push dword [ebx + 4]
lea esi, [ebx + 8]
push dword [ebx]
push esi
push str.Packing__ws___u_bytes__r_n
call fcn.00401480
push esi
push dword [ebp - 0x4a0]
mov esi, dword [ebp - 0x49c]
push str._ws_ws
push 0x7fff
push esi
call fcn.00401600
add esp, 0x24
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f68
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f68
add edi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x484]
add ebx, 0x230
inc eax
mov dword [ebp - 0x484], eax
cmp eax, dword [ebp - 0x488]
jb 0x401ed0
jmp 0x401f74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x494], eax
push dword [ebp - 0x49c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x490]
sub edi, esi
mov ebx, dword [ebp - 0x4a4]
cmp edi, ebx
je 0x401faf
push str.Buffer_size_mismatch.
call fcn.00401480
add esp, 4
mov esi, 0xe
jmp 0x401fd9
push ebx
push dword [ebp - 0x488]
push str._r_nTotal__u_files___u_bytes__r_n
call fcn.00401480
mov eax, dword [ebp - 0x4a8]
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebp - 0x4ac]
mov esi, dword [ebp - 0x494]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x48c]
test ebx, ebx
je 0x402028
mov ecx, dword [ebp - 0x498]
mov eax, 0xea0ea0eb
sub ecx, ebx
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x230
mov eax, ebx
cmp ecx, 0x1000
jb 0x40201e
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402046
push ecx
push ebx
call fcn.004029ac
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040296b
mov esp, ebp
pop ebp
ret
call fcn.004087de
int3