Function at 0x4038f0
Capabilities:
Extract resource via kernel32 functions
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x40c638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebp, ebp
mov ebx, ecx
cmp esi, ebp
push edi
mov dword [esp + 0x14], ebx
jne 0x403923
xor eax, eax
jmp 0x403e76
lea ecx, [esi + 0x80]
push 0x41144c
mov dword [esp + 0x14], 1
call fcn.0040bab0
cmp dword [esi + 0x30], ebp
je 0x403d20
push ecx
lea eax, [esi + 0x24]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.004045e0
cmp eax, ebp
je 0x403e8b
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x403a1a
mov ecx, dword [esi + 0x70]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x403a1a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403a1a
lea eax, [esi + 0x24]
push 0x410098
lea edx, [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_operator_2
mov edi, eax
push ebp
lea ecx, [esi + 0x68]
mov dword [esp + 0x3c], 0
call fcn.004048b0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
push edi
push ecx
call sub.MFC42.DLL_operator
mov ecx, ebx
call fcn.004045e0
test eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
sete byte [esp + 0x40]
call fcn.0040b9d8
mov al, byte [esp + 0x40]
test al, al
je 0x4039f4
mov dword [esp + 0x10], 0
inc ebp
jmp 0x403963
mov edx, dword [esi + 0x6c]
lea edi, [esi + 0x84]
mov ecx, edi
lea eax, [edx + ebp*4]
push eax
call sub.MFC42.DLL_CString::operator_2
push 0x410580
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
inc ebp
jmp 0x403963
xor edi, edi
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x403af6
mov ecx, dword [esi + 0x50]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x403af6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403af6
mov ebp, dword [ebx + 0xb8]
lea eax, [esi + 0x24]
push 0x410098
lea edx, [esp + 0x20]
push eax
push edx
call sub.MFC42.DLL_operator_2
shl edi, 2
lea edx, [esp + 0x18]
mov dword [esp + 0x38], 1
lea ecx, [edi + ebp]
push ecx
push eax
push edx
call sub.MFC42.DLL_operator
mov ecx, dword [esi + 0x4c]
mov eax, dword [eax]
push 0
push eax
mov ecx, dword [edi + ecx]
mov byte [esp + 0x40], 2
push ecx
call fcn.00404ea0
add esp, 0xc
lea ecx, [esp + 0x18]
test eax, eax
sete bl
mov byte [esp + 0x38], 1
call fcn.0040b9d8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040b9d8
test bl, bl
je 0x403ac5
mov dword [esp + 0x10], 0
jmp 0x403ae2
add edi, dword [esi + 0x4c]
push edi
lea edi, [esi + 0x80]
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
push 0x410580
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x40], eax
mov edi, eax
jmp 0x403a20
xor edi, edi
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403bd2
mov ecx, dword [esi + 0x40]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x403bd2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403bd2
mov ebp, dword [ebx + 0xa8]
lea eax, [esi + 0x24]
push 0x410098
lea edx, [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_operator_2
shl edi, 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x38], 3
lea ecx, [edi + ebp]
push ecx
push eax
push edx
call sub.MFC42.DLL_operator
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax]
push 0
push eax
mov ecx, dword [edi + ecx]
mov byte [esp + 0x40], 4
push ecx
call fcn.00404ea0
add esp, 0xc
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
mov byte [esp + 0x38], 3
call fcn.0040b9d8
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040b9d8
test bl, bl
je 0x403ba1
mov dword [esp + 0x10], 0
jmp 0x403bbe
add edi, dword [esi + 0x3c]
push edi
lea edi, [esi + 0x80]
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
push 0x410580
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x40], eax
mov edi, eax
jmp 0x403afc
xor edi, edi
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x403c9d
mov ecx, dword [esi + 0x60]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x403c9d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403c9d
mov ebp, dword [ebx + 0xc8]
lea eax, [esi + 0x24]
push 0x410098
lea edx, [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_operator_2
shl edi, 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x38], 5
lea ecx, [edi + ebp]
push ecx
push eax
push edx
call sub.MFC42.DLL_operator
mov ecx, dword [esi + 0x5c]
mov eax, dword [eax]
push 0
push eax
mov ecx, dword [edi + ecx]
mov byte [esp + 0x40], 6
push ecx
call fcn.00404ea0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov ebp, eax
mov byte [esp + 0x38], 5
call fcn.0040b9d8
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040b9d8
test ebp, ebp
je 0x403c8d
add edi, dword [esi + 0x5c]
push edi
lea edi, [esi + 0x80]
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
push 0x410580
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
mov edi, eax
jmp 0x403bd8
mov eax, dword [esi + 0x80]
lea ebp, [esi + 0x80]
lea ecx, [esp + 0x40]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, ebp
mov dword [esp + 0x3c], 7
call fcn.0040b9de
or edi, 0xffffffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edi
call fcn.0040b9d8
mov edx, dword [esi + 0x84]
add esi, 0x84
mov ecx, esi
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov dword [esp + 0x3c], 8
call fcn.0040b9de
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edi
call fcn.0040b9d8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403e72
lea edi, [ebx + 0x114]
push 0x410568
lea ecx, [esp + 0x44]
push edi
push ecx
mov ebp, 1
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.0040b9d8
test esi, esi
jbe 0x403dd1
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403dd1
push 0x410568
lea edx, [esp + 0x44]
push edi
push edx
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push ebx
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.0040b9d8
test esi, esi
je 0x403dbf
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x410098
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403dbf
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], 0x20004
jbe 0x403dbf
xor ebp, ebp
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test ebp, ebp
je 0x403e72
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
push 0x410568
lea eax, [esp + 0x18]
mov ebx, 9
push edi
push eax
mov dword [esp + 0x44], ebx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0x9001
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 0xa
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x38], bl
call fcn.0040b9d8
test esi, esi
je 0x403e61
push 0x410564
push 0x86
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040baf8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4
mov dword [esp + 0x10], ebp
jmp 0x403e72