Function at 0x40109b
Capabilities:
Get file version info
Resolve function by parsing pe exports

Disassembly:
jmp 0x406b40
sub esp, 0x668
mov eax, dword [0x44e1b4]
xor eax, esp
mov dword [esp + 0x664], eax
mov ecx, dword [esp + 0x674]
push ebp
mov ebp, dword [esp + 0x670]
xor eax, eax
cmp ebp, eax
push edi
mov edi, dword [esp + 0x678]
mov dword [esp + 0x10], ecx
jne 0x406b8e
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x664]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x668
ret
cmp edi, eax
je 0x406b75
cmp ecx, eax
je 0x406b75
cmp word [edi], ax
je 0x406b75
cmp word [ecx], ax
je 0x406b75
push ebx
push esi
push 0x200
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x7c]
push eax
xor esi, esi
xor ebx, ebx
call fcn.0041be10
xor eax, eax
push 0x400
push eax
lea ecx, [esp + 0x288]
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.0041be10
push edi
push ebp
lea edx, [esp + 0x294]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x278]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test ebp, ebp
je 0x406c89
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x406c89
mov edx, dword [esp + 0x14]
push edi
push ebp
push edx
lea eax, [esp + 0x280]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x406c90
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x406d8f
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x435bfc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
push edi
push 0
je 0x406c7c
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xe]
movzx ebp, word [eax + 0xa]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push 0x100
push edx
call fcn.0041c22f
add esp, 0xc
movzx edi, word [esp + esi*2 + 0x74]
xor eax, eax
cmp di, 0x2e
sete al
xor ecx, ecx
test di, di
sete cl
or eax, ecx
je 0x406d40
push esi
lea edx, [esp + ebx*2 + 0x78]
push edx
lea eax, [esp + 0x54]
push 0x14
push eax
call fcn.0041c29b
lea ecx, [esp + 0x5c]
push ecx
call fcn.0041bee1
mov ecx, dword [esp + 0x24]
lea ebx, [ebx + esi + 1]
add esp, 0x14
mov dword [esp + ecx*4 + 0x24], eax
xor esi, esi
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x406d43
add esi, 1
cmp dword [esp + 0x10], 4
jb 0x406cf0
mov eax, dword [esp + 0x24]
cmp ebp, eax
ja 0x406d83
jb 0x406d70
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
ja 0x406d83
jb 0x406d70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
ja 0x406d83
jae 0x406d77
mov eax, 2
jmp 0x406d8f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jbe 0x406d8a
mov eax, 1
jmp 0x406d8f
sbb eax, eax
add eax, 3
mov ecx, dword [esp + 0x674]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.0041bdf4
add esp, 0x668
ret