Function at 0x402080
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4ef0b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x52bd18]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x130], eax
mov dword [esp + 0x1c], ebx
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x148]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], ebx
call fcn.00401fd0
mov edx, dword [esp + 0x10]
mov ebp, dword [edx - 4]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, ebp
or ecx, eax
mov byte [esp + 0x13c], 1
jge 0x402107
push ebx
lea ecx, [esp + 0x14]
call fcn.00401610
mov edx, dword [esp + 0x10]
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x402175
mov esi, dword [esp + 0x144]
push str.0.0.0.0
mov ecx, esi
call fcn.00401fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x13c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40214c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023e0
mov ecx, dword [eax]
push eax
jmp 0x4023db
push esi
call fcn.004df1be
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [edx - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edx - 8]
add esp, 4
or ecx, eax
jge 0x4021a7
push ebx
lea ecx, [esp + 0x14]
call fcn.00401610
mov edx, dword [esp + 0x10]
push edi
push esi
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x4fcaa0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402268
cmp dword [esp + 0x24], ebx
jbe 0x402268
mov eax, dword [esp + 0x20]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str._d._d._d._d
push ecx
call fcn.00401c40
mov esi, dword [esp + 0x2c]
add esi, 0xfffffff0
push esi
call fcn.00401660
mov edi, dword [esp + 0x160]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x13c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40223f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x13c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402261
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, edi
jmp 0x4023e2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test dword [esp + 0x28], 0xfffffffc
jbe 0x4022bc
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x38]
push 0x4fca50
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x4022e4
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4022d0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401880
push 0x4fca4e
push 0x4fca4c
lea ecx, [esp + 0x1c]
call fcn.00401920
push 0x4fca48
push 0x4fca44
lea ecx, [esp + 0x1c]
call fcn.00401920
push edi
call fcn.004df1b9
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
add esp, 4
cmp eax, ebx
jne 0x40232e
push 7
push str.0.0.0.0
lea ecx, [esp + 0x1c]
call fcn.00401880
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
add ebp, 0xfffffff0
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
cmp edx, ebx
lea ecx, [ebp + 0xc]
jl 0x402359
cmp eax, dword [ebp]
jne 0x402359
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40238c
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
cmp eax, ebx
jne 0x40236e
jmp fcn.0041aab0
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x144]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x13c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x13c], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4023e0
mov ecx, dword [ebp]
push ebp
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
pop ebx
call fcn.004ce183
add esp, 0x130
ret