Function at 0x4021b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428569
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x14]
call fcn.00406740
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
jne 0x402210
push 0x208
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x402221
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4023d9
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov edx, dword [ebp - 0x18]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4022a3
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov ecx, dword [ebp - 0x240]
or ecx, 1
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x402403
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0x42976c
mov eax, dword [ebp - 0x22c]
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x234], 0
je 0x402302
cmp dword [ebp - 0x230], 0
jne 0x402331
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov edx, dword [ebp - 0x240]
or edx, 1
mov dword [ebp - 0x240], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x402403
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov word [ebp - 0x23c], cx
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov word [ebp - 0x23a], ax
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
mov word [ebp - 0x238], dx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
mov word [ebp - 0x236], cx
movzx edx, word [ebp - 0x236]
push edx
movzx eax, word [ebp - 0x238]
push eax
movzx ecx, word [ebp - 0x23a]
push ecx
movzx edx, word [ebp - 0x23c]
push edx
push 0x429770
lea eax, [ebp - 0x14]
push eax
call fcn.004085c0
add esp, 0x18
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov ecx, dword [ebp - 0x240]
or ecx, 1
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00409b17
mov esp, ebp
pop ebp
ret