Function at 0x403220
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cd08
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5a68a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40329d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041ebc6
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4032cb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40327d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
push edi
push esi
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
test dword [ebp - 0x24], 0xfffffffc
jbe 0x403627
call fcn.0041f7c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4033ba
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0040a270
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0x10
or ecx, eax
jge 0x403361
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a920
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
push edi
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4033aa
mov byte [ebp - 4], al
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x4032fc
jmp 0x403624
call fcn.0041f7c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4033c4
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
test edx, edx
jne 0x4033e2
xor eax, eax
jmp 0x4033f6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4033e7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.0040a9f0
mov dword [ebp - 0x28], 0
call fcn.0041f7c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403421
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00420633
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x40354f
push 0x2c
push esi
call fcn.0051d7cc
add esp, 8
test eax, eax
je 0x4034ca
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4034ca
mov bl, 5
lea ecx, [ebp - 0x28]
push ecx
push 0x57e05c
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x10]
call fcn.004093f0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040a4c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x40354f
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x4c]
call fcn.004209f2
jmp 0x403467
cmp dword [esi - 0xc], 0
jle 0x40354f
push 0x2e
push esi
call fcn.0051d7cc
add esp, 8
test eax, eax
je 0x40354f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40354f
mov bl, 6
mov edi, edi
lea ecx, [ebp - 0x28]
push ecx
push 0x57e060
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x10]
call fcn.004093f0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040a4c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403534
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x40354f
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x14]
push edx
push eax
lea ecx, [ebp - 0x4c]
call fcn.004209f2
jmp 0x4034f0
lea ecx, [ebp - 0x10]
call fcn.0040a7c0
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp - 0x44]
cmp ecx, 4
mov eax, 4
jg 0x40356f
mov eax, ecx
cmp esi, eax
jge 0x4035a3
test esi, esi
jl 0x40359e
cmp esi, ecx
jge 0x40359e
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + esi*4]
push eax
call fcn.0051d1a2
push eax
push 0x57e064
lea edi, [ebp - 0x10]
call fcn.00409310
mov edi, dword [ebp - 0x18]
add esp, 0xc
inc esi
jmp 0x403560
call fcn.0041f5a0
mov esi, dword [ebp - 0x10]
push 0x10
push 0
push esi
call fcn.0051d42e
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.0042085f
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4035e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x1c]
push edi
call fcn.0041ebbb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403656
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret