Function at 0x40fb96
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a8
push edi
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x380], 0
lea ecx, [ebp - 0x14c]
call fcn.004226f2
mov dword [ebp - 4], 0
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x37c], 3
mov dword [ebp - 0x148], str.KAECore.DAT
mov dword [ebp - 0x144], 0x4338c8
mov dword [ebp - 0x140], str.KAExtend.DAT
mov dword [ebp - 0x13c], 2
mov eax, dword [0x4338e8]
mov dword [ebp - 0x378], eax
mov ecx, dword [0x4338ec]
mov dword [ebp - 0x374], ecx
mov edx, dword [0x4338f0]
mov dword [ebp - 0x370], edx
mov al, byte [0x4338f4]
mov byte [ebp - 0x36c], al
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0x36b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [0x4338f8]
mov dword [ebp - 0x274], ecx
mov edx, dword [0x4338fc]
mov dword [ebp - 0x270], edx
mov eax, dword [0x433900]
mov dword [ebp - 0x26c], eax
mov cl, byte [0x433904]
mov byte [ebp - 0x268], cl
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0x267]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0x439a00]
mov byte [ebp - 0x490], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x48f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x439a04]
mov byte [ebp - 0x118], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x170]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
jne 0x40fd3a
push 0
push str.GetFileVersion:Can_Not_Get_FileName_For_FileFullPath.
call fcn.00410257
add esp, 8
jmp 0x41017a
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.0040ea68
add esp, 8
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0x433940
lea edx, [ebp - 0x490]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x170]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40fde8
lea ecx, [ebp - 0x170]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x170]
call sub.MFC42.DLL_CFileFind::GetFileName
mov dword [ebp - 0x4b4], eax
mov edx, dword [ebp - 0x4b4]
mov eax, dword [edx]
push eax
push 0x433948
lea ecx, [ebp - 0x378]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x4ac]
call sub.MFC42.DLL_CString::CString
jmp 0x40fd8b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0042274c
mov dword [ebp - 0x388], 0
jmp 0x40fe1b
mov ecx, dword [ebp - 0x388]
add ecx, 1
mov dword [ebp - 0x388], ecx
cmp dword [ebp - 0x388], 2
jge 0x40fee6
mov edx, dword [ebp - 0x388]
imul edx, edx, 0x104
lea eax, [ebp + edx - 0x378]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040aa40
test eax, eax
jne 0x40fee1
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x4a0], 0
lea ecx, [ebp - 0x4a0]
push ecx
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0x49c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f4ab
add esp, 0x10
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40fedf
mov edx, dword [ebp - 0x4a0]
push edx
mov eax, dword [ebp - 0x498]
shr eax, 0x10
push eax
mov ecx, dword [ebp - 0x49c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x49c]
shr edx, 0x10
push edx
push str._04d_02d_02d_d
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
jmp 0x410158
jmp 0x40fee6
jmp 0x40fe0c
mov dword [ebp - 0x388], 0
jmp 0x40ff01
mov ecx, dword [ebp - 0x388]
add ecx, 1
mov dword [ebp - 0x388], ecx
cmp dword [ebp - 0x388], 3
jge 0x40ffd1
mov edx, dword [ebp - 0x388]
mov eax, dword [ebp + edx*4 - 0x148]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040aa40
test eax, eax
jne 0x40ffcc
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x4a8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040f694
add esp, 0xc
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40ffca
mov ecx, dword [ebp - 0x4a4]
and ecx, 0xffff
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x4a4]
shr edx, 0x10
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x4a8]
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x4a8]
shr ecx, 0x10
and ecx, 0xffff
push ecx
push str._04d_02d_02d_2d
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
jmp 0x410158
jmp 0x40ffd1
jmp 0x40fef2
lea eax, [ebp - 0x384]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41005e
push 0x20
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040f989
add esp, 0xc
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x410059
lea ecx, [ebp + 0x14]
call fcn.00418840
push eax
lea ecx, [ebp + 0x14]
call fcn.00418820
push eax
lea ecx, [ebp + 0x14]
call fcn.00418800
push eax
lea ecx, [ebp + 0x14]
call fcn.004187e0
push eax
lea ecx, [ebp + 0x14]
call fcn.004187c0
push eax
lea ecx, [ebp + 0x14]
call fcn.004187a0
push eax
push str._04d_02d_02d_02d_02d_02d
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
jmp 0x410158
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x380], eax
push 4
push 0
mov eax, dword [ebp - 0x380]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x380], 0
jne 0x410092
jmp 0x41017a
mov ecx, dword [ebp - 0x380]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x384]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x4100c1
jmp 0x41017a
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x38c]
push eax
push 0x433988
mov ecx, dword [ebp - 0x380]
push ecx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x4100f4
jmp 0x41017a
mov edx, dword [ebp - 0x38c]
mov eax, dword [edx + 0xc]
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x38c]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x38c]
mov ecx, dword [eax + 8]
and ecx, 0xffff
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x38c]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
push eax
push str._04d_02d_02d_02d
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov dword [ebp - 0x494], 1
cmp dword [ebp - 0x380], 0
je 0x410193
mov edx, dword [ebp - 0x380]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x4b0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.0042292c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret