Function at 0x407030
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x448656
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x46974c]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
mov eax, dword [eax - 0xc]
mov ecx, dword [esp + 0x244]
lea edi, [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
jle 0x40708c
cmp dword [esi + 0x1c], ebx
jne 0x4073d3
cmp ecx, ebx
jne 0x4070a3
push 0x208
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4070b6
push ecx
lea edx, [esp + 0x2c]
push 0x208
push edx
call fcn.004338d5
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esi + 0x24]
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4070c0
sub eax, ebp
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004014d0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x407108
mov ecx, esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
call fcn.00406f40
jmp 0x4073d3
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40711b
push eax
call fcn.00422d82
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
push eax
call fcn.00422d87
mov ecx, dword [esi + 8]
add esp, 4
push eax
push ecx
push ebx
lea edx, [esp + 0x34]
push edx
mov dword [esi + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4071b6
mov edx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x44e73c
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4071b6
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 8]
and edx, 0xffff
mov dword [esi + 0x10], edx
movzx ecx, word [eax + 0xe]
mov dword [esi + 0x14], ecx
mov eax, dword [eax + 0xc]
and eax, 0xffff
cmp dword [esp + 0x248], ebx
mov dword [esi + 0x18], eax
je 0x4071a1
mov eax, dword [esi + 0xc]
push edx
push eax
push str.__d._d
push edi
call fcn.00406e40
add esp, 0x10
jmp 0x4071b6
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
push str.__d._d._d._d
push edi
call fcn.00406e40
add esp, 0x18
cmp dword [esi + 8], ebx
je 0x40733c
cmp dword [esi + 4], ebx
je 0x40733c
push 0x4b0
push 0x409
push str.Comments
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x54]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e6e4
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x50]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e6c4
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x4c]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e6ac
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x48]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e690
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x44]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e670
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x40]
call fcn.00406da0
push 0x4b0
push 0x409
push str.LegalTrademarks
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x3c]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e62c
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x38]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e614
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x34]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e5f4
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x30]
call fcn.00406da0
push 0x4b0
push 0x409
push str.PrivateBuild
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x2c]
call fcn.00406da0
push 0x4b0
push 0x409
push 0x44e5bc
mov ecx, esi
call fcn.004069b0
push eax
lea ecx, [esi + 0x28]
call fcn.00406da0
mov ecx, dword [esi + 0x28]
add esi, 0x28
cmp dword [ecx - 0xc], ebx
je 0x4073d3
push 0x44e43c
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00406e60
push esi
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x254], ebx
call fcn.004016c0
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x240], 1
call fcn.00401600
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x23c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00432688
add esp, 0x22c
ret 8