Function at 0x10018ae0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e15e8
push eax
mov eax, dword [0x10282758]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
je 0x10018b4d
push esi
lea ecx, [esp + 0x30]
call fcn.10077a80
mov eax, dword [eax]
push ebx
push eax
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x_
or edi, 0xffffffff
push str.SDTransform
push edi
push 0x10281ec4
mov dword [esp + 0x38], 0
call fcn.100de220
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edi
call fcn.10078300
jmp 0x10018b50
or edi, 0xffffffff
test ebx, ebx
mov ebp, edi
mov dword [esp + 0x2c], 0
je 0x10018c8d
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, edi
je 0x10018cdb
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jb 0x10018d28
push 0
push edi
push 0
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x10018d80
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x10], eax
je 0x10018dcf
mov ecx, edi
lea esi, [eax + ebx]
sub ecx, ebx
mov edi, eax
mov dword [esp + 0x14], ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
mov esi, eax
call edi
mov eax, dword [0x10282758]
or ebp, 0xffffffff
test eax, eax
je 0x10018e1f
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push eax
call fcn.10077a80
mov ecx, dword [eax]
push ebx
push ecx
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x__ok_
push str.SDTransform
push ebp
push 0x10281ec4
mov dword [esp + 0x38], 6
call fcn.100de220
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call fcn.10078300
jmp 0x10018e1f
mov eax, dword [0x10282758]
test eax, eax
je 0x10018e1d
push esi
lea ecx, [esp + 0x18]
call fcn.10077a80
mov edx, dword [eax]
push 0x741
push 0
push edx
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x__line__lu__break_
push str.SDTransform
push edi
push 0x10281ec4
mov dword [esp + 0x3c], 1
call fcn.100de220
add esp, 0x1c
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x14]
jmp 0x10018e18
mov eax, dword [0x10282758]
test eax, eax
je 0x10018e1d
push esi
lea ecx, [esp + 0x18]
call fcn.10077a80
mov eax, dword [eax]
push 0x74d
push ebx
push eax
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x__line__lu__break_
push str.SDTransform
push edi
push 0x10281ec4
mov dword [esp + 0x3c], 2
call fcn.100de220
add esp, 0x1c
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x14]
jmp 0x10018e18
mov eax, dword [0x10282758]
test eax, eax
je 0x10018d76
push esi
lea ecx, [esp + 0x18]
call fcn.10077a80
mov ecx, dword [eax]
push 0x759
push ebx
push ecx
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x__line__lu__break_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
mov dword [esp + 0x3c], 3
call fcn.100de220
add esp, 0x1c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.10078300
mov esi, 1
jmp 0x10018e1f
mov eax, dword [0x10282758]
test eax, eax
je 0x10018e1d
push esi
lea ecx, [esp + 0x18]
call fcn.10077a80
mov edx, dword [eax]
push 0x769
push ebx
push edx
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x__line__lu__break_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
mov dword [esp + 0x3c], 4
call fcn.100de220
add esp, 0x1c
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x10018e18
mov eax, dword [0x10282758]
test eax, eax
je 0x10018e1d
push esi
lea ecx, [esp + 0x18]
call fcn.10077a80
mov eax, dword [eax]
push 0x775
push ebx
push eax
push str.RemoveFileHeader_lpszFile__s__dwHeader_0x_x__line__lu__break_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
mov dword [esp + 0x3c], 5
call fcn.100de220
add esp, 0x1c
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10078300
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10018e33
push eax
call edi
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret