Function at 0x40b390
Capabilities:
Get file size
Get file version info
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x45b846
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x473354]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0xfc]
mov ebp, dword [esp + 0x110]
mov edi, dword [esp + 0x10c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x30], edx
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, 0x474ec8
mov dword [esp + 0x24], ebp
call fcn.00409bc0
mov ebx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0xf4], esi
cmp ebx, esi
je 0x40b43f
cmp dword [ebx + 4], esi
jne 0x40b436
mov eax, dword [ebx]
push eax
call fcn.0042e110
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], ecx
jmp 0x40b443
mov dword [esp + 0x14], esi
push 1
call fcn.0042f396
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
mov byte [ebx], 0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push eax
mov byte [esp + 0xfc], 1
mov dword [ebp], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40b515
push esi
call fcn.0042f396
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40b508
cmp dword [ebp], 0xfeef04bd
mov eax, ebp
je 0x40b4ab
inc eax
cmp dword [eax], 0xfeef04bd
jne 0x40b4a2
mov edx, dword [esp + 0x30]
push edx
push eax
call fcn.00405210
push str.InternalName
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.004071e0
mov eax, dword [eax]
push eax
mov esi, ebx
call fcn.0042f484
mov ebx, eax
push esi
mov dword [esp + 0x44], ebx
call fcn.0042f4d9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f4d9
add esp, 0x20
test ebx, ebx
je 0x40b508
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
push ebx
call fcn.0042f484
mov ecx, dword [esp + 0x24]
push esi
mov dword [ecx], eax
call fcn.0042f4d9
add esp, 8
push ebp
call fcn.0042f4d9
mov ebp, dword [esp + 0x20]
add esp, 4
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push edx
call fcn.0040a020
mov esi, eax
cmp esi, 0xffffffff
je 0x40b681
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x40
lea ecx, [esp + 0xac]
push ecx
push 0
lea edx, [esp + 0x54]
push edx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x40
lea eax, [esp + 0x6c]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edx, dword [edi]
push 0x65
push edx
call fcn.0042f567
push 0x65
push 0
push eax
mov dword [edi], eax
call fcn.0042f790
mov edx, dword [edi]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xc0]
push ecx
push 0x460eb0
push edx
call fcn.00432395
add esp, 0x24
cmp dword [esp + 0x18], 0
je 0x40b67a
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40b67a
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40b66f
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
push eax
push ecx
push edi
push 0x8003
call fcn.004197b0
mov edx, dword [esp + 0x28]
mov eax, dword [ebp]
add edx, 4
push edx
push eax
push edi
push 0x8004
call fcn.004197b0
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp]
add ecx, 8
push ecx
push edx
push edi
push 0x800c
call fcn.004197b0
add esp, 0x30
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0042f4d9
mov esi, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x40b6c6
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40b6c6
mov eax, dword [esi]
test eax, eax
je 0x40b6ad
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b6bd
push eax
call fcn.00430786
add esp, 4
push esi
call fcn.0042f2c2
add esp, 4
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.00430430
add esp, 0xe4
ret