Function at 0x40cd20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e78b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x43a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov ebx, ecx
mov esi, edx
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], 0
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], 0
test esi, esi
jne 0x40cd9a
push 0x208
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40cda8
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x218]
xor esi, esi
push eax
mov dword [ebp - 0x22c], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x228], eax
cmp eax, esi
je 0x40cec9
push eax
push 2
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40ce25
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00401710
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cef8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40cef8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x22c]
mov ebx, eax
mov eax, dword [ebp - 0x228]
push ebx
push eax
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 0x432d10
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x230], 0
je 0x40cf16
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40cf16
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
mov cx, word [eax + 0x12]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
movzx eax, cx
push edx
push eax
push str._d._d._d._d
lea edi, [ebp - 0x21c]
call fcn.00418480
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x220]
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00401710
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cef8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418cd4
mov esp, ebp
pop ebp
ret
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00401710
mov edi, dword [ebp - 0x220]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf4b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
jmp 0x40cefa