Function at 0x41b420
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4902b4]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
cmp dword [eax + 0x14], 8
jb 0x41b459
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41b723
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
push 0
push 0
push 0
push 4
push 0
push ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
jne 0x41b4ba
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b723
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
push 0x400
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041a460
push dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00447c10
mov eax, dword [ebp - 0x50]
add esp, 0xc
add eax, 0xfffffc00
adc esi, 0xffffffff
push 0
push dword [0x492bc0]
mov dword [ebp - 0x60], esi
push esi
push eax
call fcn.00444ce0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, eax
mov dword [ebp - 0x58], ecx
xor eax, eax
or ecx, edx
mov dword [ebp - 0x64], edx
jne 0x41b57e
mov eax, dword [ebp - 0x50]
push 0x400
add eax, 0xfffffc00
push eax
push dword [ebp - 0x60]
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x41b56f
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov esi, eax
cmovae edi, dword [ebp - 0x28]
jmp 0x41b5da
test edx, edx
jl 0x41b5ea
mov edx, dword [ebp - 0x58]
jg 0x41b58b
test edx, edx
je 0x41b5ea
mov ecx, dword [ebp - 0x50]
sub ecx, edx
mov edx, dword [ebp - 0x54]
sbb edx, dword [ebp - 0x64]
sub ecx, 0x400
sbb edx, eax
mov eax, edx
sar eax, 0x1f
mov eax, dword [ebp - 0x58]
add eax, 0x400
push eax
push ecx
push edx
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x41b5ca
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x58]
cmovae edi, dword [ebp - 0x28]
add esi, eax
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0041aaa0
add esp, 8
test al, al
jne 0x41b634
push edi
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push str.echo_failed_map1____faile.txt
call fcn.0044ab11
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00419cc0
jmp 0x41b70e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00419cc0
push dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.0041ad80
add esp, 8
mov eax, dword [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], 2
cmp eax, dword [ebp - 0x18]
je 0x41b6ad
nop dword [eax]
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0041a750
push 0
push dword [esi + 4]
push 0
push dword [esi]
push edi
call fcn.0041b890
add esi, 8
add esp, 0x2c
cmp esi, dword [ebp - 0x18]
jne 0x41b670
mov eax, dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [ebp - 0x2c], eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffc00
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call esi
mov esi, dword [ebp - 0x68]
push esi
call fcn.0041bc50
push esi
call fcn.0041b740
mov ecx, dword [ebp - 0x1c]
add esp, 8
test ecx, ecx
je 0x41b70e
mov eax, dword [ebp - 0x14]
sub eax, ecx
sar eax, 3
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00425ff0
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x41b723
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0041b030
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.00444b60
mov esp, ebp
pop ebp
ret