Function at 0x404200
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x457dab
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
push 0x4622b0
lea ecx, [esp + 0x18]
mov dword [esp + 0xa4], ebx
call fcn.00402680
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0xa8]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.0040f788
add esp, 4
mov ebp, eax
push ebp
push esi
mov esi, dword [esp + 0xb0]
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x404303
push ebp
call fcn.0040f78d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00402ac0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa0], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40452d
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x4624c8
push ebp
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x18]
shr eax, 2
xor esi, esi
test eax, eax
jle 0x404389
jmp 0x404330
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
mov eax, 0x32
lea edi, [esp + 0x3c]
call fcn.00404190
add esp, 0xc
cmp eax, ebx
jge 0x404362
push ebp
call fcn.0040f78d
add esp, 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4043be
mov eax, dword [esp + 0x18]
add esi, 1
shr eax, 2
cmp esi, eax
jl 0x404330
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x404491
cmp eax, dword [esi]
jne 0x404491
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4044cd
call fcn.0041c08e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4043d8
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0xa0], 2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004029b0
lea eax, [esp + 0x14]
push eax
call fcn.00406240
push ebp
call fcn.0040f78d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00402ac0
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0xa0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
jmp 0x4042e3
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x4044aa
jmp fcn.00402560
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0043e977
add esp, 0x10
mov esi, dword [esp + 0x1c]
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0x14]
add edi, 0x10
add eax, 0xfffffff0
mov dword [esi], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40452b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0043e923
add esp, 0x90
ret