Function at 0x439820
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae75
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4a3a10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
push ebx
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ebx
call fcn.0041fb60
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x4c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x43992a
call fcn.0042edd0
mov esi, eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fc40
add esp, 4
push eax
push ebx
push 0x2f
push str.cannot_determine_version_info_size_for_:_
push 4
sub esp, 0xc
mov dword [ebp - 0x58], 0
mov eax, esp
mov dword [ebp - 0x54], 0
movq xmm0, qword [ebp - 0x58]
mov ecx, esi
mov byte [ebp - 4], 1
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00419180
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x439911
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x439907
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439a82
push ecx
push edx
call fcn.0044781c
add esp, 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x439a5c
xor ecx, ecx
mov edx, 2
mul edx
push 0x48e240
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004480d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x43998a
call fcn.0042edd0
push dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp - 0x58], ebx
push 0x34
push str.cannot_allocate_storage_for_version_info_size_for_
push 4
sub esp, 0xc
mov dword [ebp - 0x54], ebx
movq xmm0, qword [ebp - 0x58]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], ebx
call fcn.0040a7c0
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x439a5c
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push esi
push dword [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4399fd
call fcn.0042edd0
mov esi, eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fc40
add esp, 4
push eax
push dword [ebp - 0x44]
mov ecx, esi
mov byte [ebp - 4], 3
sub esp, 8
mov eax, esp
mov dword [eax], str.cannot_read_file_version_for_:_
mov dword [eax + 4], 0x23
call fcn.00418e70
lea ecx, [ebp - 0x40]
call fcn.0040fdb0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x439a53
lea eax, [esi + esi]
mov dword [edi], 0
mov dword [ebp - 0x48], eax
sar eax, 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x44], eax
je 0x439a53
cmp eax, 0x7fffffff
ja 0x439a87
push eax
mov ecx, edi
call fcn.00410e60
push dword [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [edi], esi
push ebx
mov dword [edi + 4], esi
lea ecx, [esi + eax*2]
push esi
mov dword [edi + 8], ecx
call fcn.00449170
mov eax, dword [ebp - 0x44]
add esp, 0xc
lea eax, [esi + eax*2]
mov dword [edi + 4], eax
push ebx
call fcn.00447833
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0040fe00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447a97
mov esp, ebp
pop ebp
ret
call fcn.0044c8cf
call fcn.00410c60
int3