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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x4c], 0
jne 0x474d3a
xor eax, eax
jmp 0x474fa6
push 0
push 0
push 3
push 0
push 7
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x474d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.DLL.CheckFile_CreateFile__s___Last_error___d_r_n
call fcn.00482a00
add esp, 0xc
mov eax, 1
jmp 0x474fa6
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x474dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DLL.CheckFile_CreateFileMapping____Last_error___d_r_n
call fcn.00482a00
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x474fa6
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x474e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DLL.CheckFile_MapViewOfFile____Last_error___d_r_n
call fcn.00482a00
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x474fa6
mov dword [ebp - 0x14], 0
jmp 0x474e31
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x58]
jae 0x474f83
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x54]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov esi, dword [ebp - 0x20]
mov esi, dword [esi + 0x54]
mov edx, dword [edx + eax + 4]
add edx, dword [esi + ecx + 0xc]
cmp dword [ebp - 8], edx
jb 0x474f7e
push str.trojan.downloader
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + eax]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x474e8c
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
mov ecx, dword [eax + ecx + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + eax + 8]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
mov ecx, dword [eax + ecx + 4]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004749f0
movzx edx, al
test edx, edx
je 0x474f7e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp + 0xc], 0
je 0x474f77
cmp dword [ebp + 0x10], 0
je 0x474f77
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + eax]
push eax
call fcn.0043fbe0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0043ff60
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jbe 0x474f57
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx + edx]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00440630
add esp, 0xc
jmp 0x474f77
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx + edx]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00440630
add esp, 0xc
mov eax, 2
jmp 0x474fa6
jmp 0x474e28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret 0x10