Function at 0x404320
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d368
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4262ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x2a4], 0
push 0x420bef
lea ecx, [ebp - 0x30]
call fcn.00404670
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov word [ebp - 0x244], ax
push 0x206
push 0
lea ecx, [ebp - 0x242]
push ecx
call fcn.00415360
add esp, 0xc
mov dword [ebp - 0x24c], 0
push 0x104
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x248], eax
xor ecx, ecx
mov edx, dword [ebp - 0x248]
mov word [ebp + edx*2 - 0x244], cx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x40441b
push 0x420bf0
mov ecx, dword [ebp + 8]
call fcn.00404670
mov edx, dword [ebp - 0x2a4]
or edx, 1
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403ff0
mov eax, dword [ebp + 8]
jmp 0x40458e
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b906
add esp, 4
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jne 0x40446f
push 0x420bf1
mov ecx, dword [ebp + 8]
call fcn.00404670
mov edx, dword [ebp - 0x2a4]
or edx, 1
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403ff0
mov eax, dword [ebp + 8]
jmp 0x40458e
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp eax, 1
jne 0x404542
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x254]
push ecx
push 0x420bf4
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404542
cmp dword [ebp - 0x250], 0x34
jne 0x404542
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x298]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x298]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x298]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str.Version_Info:__d__d__d__d
lea ecx, [ebp - 0x294]
push ecx
call fcn.00405020
add esp, 0x18
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x30]
call fcn.004047a0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.0040c928
add esp, 4
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.004046f0
mov eax, dword [ebp - 0x2a4]
or eax, 1
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403ff0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c2df
mov esp, ebp
pop ebp
ret 4