Function at 0x4173b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4431f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
push 0x180
call fcn.00439f84
add esp, 4
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x84]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x78], esi
je 0x4173f8
push ebx
mov ecx, eax
call fcn.004176e0
mov esi, eax
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00419470
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x7c], 1
call fcn.004196e0
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00417f70
add esp, 8
cmp eax, ebp
mov dword [esi + 8], eax
jne 0x417464
test esi, esi
je 0x417442
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00419530
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4174d6
test ebx, ebx
je 0x4174a8
mov edx, dword [ebx]
push str.Failed_to_create_file_mapping
mov ecx, ebx
call dword [edx + 0x10]
mov eax, dword [ebx]
push edi
push str.filename
mov ecx, ebx
call dword [eax + 0x28]
test esi, esi
je 0x417442
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00419530
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
mov dword [esi + 0x10], ebp
jne 0x41751d
test ebx, ebx
je 0x41750b
mov eax, dword [ebx]
push str.Failed_to_map_view_of_file
mov ecx, ebx
call dword [eax + 0x10]
mov edx, dword [ebx]
push edi
push str.filename
mov ecx, ebx
call dword [edx + 0x28]
test esi, esi
je 0x417593
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x417593
cmp word [ebp], 0x5a4d
je 0x417548
test ebx, ebx
je 0x417542
mov edx, dword [ebx]
push str.Failed_to_find_DOS_signature
mov ecx, ebx
call dword [edx + 0x10]
mov eax, dword [ebx]
push edi
push str.filename
mov ecx, ebx
call dword [eax + 0x28]
test esi, esi
je 0x417593
jmp 0x41758b
push ebp
lea ecx, [esi + 0x24]
call fcn.0042ca40
mov edi, dword [ebp + 0x3c]
push 4
add edi, ebp
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4175b9
test ebx, ebx
je 0x417587
mov eax, dword [ebx]
push str.Failed_to_find_NT_header
mov ecx, ebx
call dword [eax + 0x10]
mov eax, dword [esp + 0x80]
mov edx, dword [ebx]
push eax
push str.filename
mov ecx, ebx
call dword [edx + 0x28]
test esi, esi
je 0x417593
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00419530
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push edi
lea ecx, [esi + 0x68]
call fcn.0042c9d0
xor eax, eax
mov ax, word [edi + 0x14]
lea ecx, [eax + edi + 0x18]
xor eax, eax
mov ax, word [edi + 6]
push eax
push ecx
lea ecx, [esi + 0x164]
call fcn.0042c900
mov ecx, esi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], edi
call fcn.004176a0
push ebx
mov ecx, esi
call fcn.00417310
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00419530
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret