Function at 0x4089e0
Capabilities:
Get file size

Disassembly:
sub esp, 0x11c
push ebx
mov ebx, dword [esp + 0x124]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, ecx
push 0
push ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408a38
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea eax, [edi + 0x458]
push 0x423104
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x45c]
lea esi, [edi + 0x45c]
test eax, eax
je 0x408a4f
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
push 1
push esi
push 0
push 0
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconExA]
cmp dword [esi], 2
jae 0x408a81
call sub.MFC42.DLL_AfxGetModuleState
push 0x8f
push 0xe
push 0x8f
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi], eax
push str.version.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x408cc4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.GetFileVersionInfoSizeA
push edi
call esi
push str.GetFileVersionInfoA
push edi
mov ebx, eax
call esi
push str.VerQueryValueA
push edi
mov dword [esp + 0x18], eax
call esi
test ebx, ebx
mov ebp, eax
je 0x408cbc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408cbc
test ebp, ebp
je 0x408cbc
mov edx, dword [esp + 0x130]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 0
call ebx
mov ebx, eax
cmp ebx, 1
jb 0x408cbc
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x408cbc
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x138]
push eax
push ecx
call dword [esp + 0x20]
test eax, eax
je 0x408cb8
lea edx, [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x28], 0
call ebp
test eax, eax
je 0x408cb8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, 0xfffffffc
jbe 0x408cae
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ax, word [ecx + edi*4]
test ah, 0x80
mov dword [esp + 0x10], eax
je 0x408bb2
mov dword [esp + 0x10], 0x409
mov word [ecx + edi*4 + 2], 0x4e4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [ecx + edi*4 + 2]
push edx
push eax
lea eax, [esp + 0x34]
push str.StringFileInfo_04x_04xFileVersion
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x408bf9
mov ecx, dword [esp + 0x18]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x408b88
jmp 0x408cae
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
push edx
lea edi, [ebx + 0x20c]
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x2e
push 0x2c
mov ecx, edi
call sub.MFC42.DLL_CString::Replace
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea eax, [esp + 0x2c]
push 0x5c
push eax
call edi
push 0x100
lea ecx, [esp + 0x38]
push 0x42367c
push ecx
mov byte [eax + 1], 0
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
push esi
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x210]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x2c]
push 0x5c
push eax
call edi
push 0x100
lea ecx, [esp + 0x38]
push 0x42366c
push ecx
mov byte [eax + 1], 0
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
push esi
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x214]
push edx
call sub.MFC42.DLL_CString::operator_1
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret 4