Function at 0x402cc0
Capabilities:
Get file version info
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40a7a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0
mov ebx, 1
push str..ini
lea ecx, [esp + 0x10c]
mov dword [esp + 0x100], ebx
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x402e72
push str.libmysql.dll
lea ecx, [esp + 0x10c]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x402e72
push str.Disk1004.ico
lea ecx, [esp + 0x10c]
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x402e72
mov eax, dword [esp + 0x108]
push ebp
mov eax, dword [eax - 8]
lea esi, [eax + 1]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, dword [esp + 0x114]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x9c]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x94]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push 0x40d1ac
push edx
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::Format
push esi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x118]
add esp, 0x10
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x100], bl
call fcn.00409d12
lea ecx, [esp + 0x10c]
mov byte [esp + 0x100], 0
call fcn.00409d12
mov eax, esi
pop ebp
jmp 0x402f32
mov cl, byte [0x40ec28]
xor eax, eax
mov byte [esp + 0x2c], cl
mov ecx, 0x18
lea edi, [esp + 0x2d]
add esi, 0xd4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.disk1004.ini
lea edx, [esp + 0x24]
push esi
push edx
stosb byte es:[edi], al
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, dword [esp + 0x108]
push eax
lea eax, [esp + 0x30]
push 0x64
push eax
push str.1000
push ecx
push str.version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x20]
call fcn.00409d12
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push 0x40d1ac
push eax
mov byte [esp + 0x108], 2
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x110]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0xfc], bl
call fcn.00409d12
lea ecx, [esp + 0x108]
mov byte [esp + 0xfc], 0
call fcn.00409d12
mov eax, esi
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 8