Function at 0x4030b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49f8bc
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
cmp dword [ecx - 0xc], 0
mov ebx, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
push edi
je 0x403131
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x40310c
cmp dword [ecx - 8], 0
jge 0x4030fb
push 0x80070057
call fcn.004018d0
mov dword [ecx - 0xc], 0
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x403131
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], 0
mov edi, dword [ecx - 0x10]
lea ebx, [esi + 8]
lea eax, [ecx - 0x10]
mov dword [ebp - 0x1c], ebx
je 0x403193
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x40316f
cmp dword [ecx - 8], 0
jge 0x40315f
push 0x80070057
call fcn.004018d0
mov dword [ecx - 0xc], 0
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx], dx
jmp 0x403193
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x4031ee
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x4031ca
cmp dword [ecx - 8], 0
jge 0x4031ba
push 0x80070057
call fcn.004018d0
mov dword [ecx - 0xc], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
jmp 0x4031ee
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x4035ab
cmp word [edi], 0
je 0x4035ab
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x403225
push edi
push str.WARNING:_no_version_block_for__s
call fcn.004261a0
add esp, 8
jmp 0x4035b8
push ebx
call fcn.0047125f
add esp, 4
mov edi, eax
push edi
push ebx
mov ebx, dword [ebp + 8]
push 0
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x403265
test edi, edi
je 0x403252
push edi
call fcn.00472958
add esp, 4
push ebx
push str.ERROR:_Failed_version_block_retrieve__possible_resource_corruption_or_inappropriately_compressed_resource_____s
call fcn.004261a0
add esp, 8
jmp 0x4035b8
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
xor eax, eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call ebx
test eax, eax
je 0x403589
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x36c]
push 0x100
push eax
call fcn.00473353
add esp, 0x14
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x36c]
push eax
push edi
call ebx
test eax, eax
je 0x403392
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x403392
mov edi, esi
call fcn.00402c40
call fcn.00403810
mov eax, dword [esi]
push 3
push eax
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
push edx
mov dword [ebp - 0xcc], ecx
call fcn.00403aa0
sub esp, 0x1c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xcc]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.004036e0
mov edx, dword [esi + 0x18]
mov edx, dword [edx + 0x1c]
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x48]
push eax
call edx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40333f
mov eax, dword [eax]
mov ebx, eax
lea eax, [esi + 0xc]
call fcn.00403790
lea ecx, [ebp - 0x48]
call fcn.00403720
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
cmp eax, ecx
je 0x403371
push eax
call fcn.00473a61
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push edx
push eax
push ecx
push str.FileDesc:__s___s___for__s
call fcn.004261a0
mov edi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
add esp, 0x10
mov eax, dword [ebp - 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xProductName
lea ecx, [ebp - 0x36c]
push 0x100
push ecx
call fcn.00473353
add esp, 0x14
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x36c]
push ecx
push edi
call ebx
test eax, eax
je 0x403490
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x403490
lea edi, [esi + 4]
call fcn.00402c40
call fcn.00403810
mov edi, dword [edi]
push 3
push edi
lea eax, [ebp - 0xcc]
lea edx, [ebp - 0xc8]
push eax
mov dword [ebp - 0xcc], edx
call fcn.00403aa0
sub esp, 0x1c
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xcc]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call fcn.004036e0
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x1c]
lea ecx, [esi + 0x18]
lea edx, [ebp - 0x48]
push edx
call eax
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x40343c
mov eax, dword [eax]
mov ebx, eax
lea eax, [esi + 0x10]
call fcn.00403790
lea ecx, [ebp - 0x48]
call fcn.00403720
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
cmp eax, ecx
je 0x40346e
push eax
call fcn.00473a61
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
push str.ProdutName:__s____s___for__s
call fcn.004261a0
mov edi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
add esp, 0x10
mov eax, dword [ebp - 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xCompanyName
lea ecx, [ebp - 0x36c]
push 0x100
push ecx
call fcn.00473353
add esp, 0x14
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x36c]
push ecx
push edi
call ebx
test eax, eax
je 0x403589
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x403589
mov edi, dword [ebp - 0x1c]
call fcn.00402c40
call fcn.00403810
mov eax, dword [edi]
push 3
push eax
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x168]
push eax
mov dword [ebp - 0x16c], edx
call fcn.00403aa0
sub esp, 0x1c
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x16c]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call fcn.004036e0
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x1c]
lea ecx, [esi + 0x18]
lea edx, [ebp - 0xe8]
push edx
call eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x40353d
mov eax, dword [eax]
mov ebx, eax
lea eax, [esi + 0x14]
call fcn.00403790
lea ecx, [ebp - 0xe8]
call fcn.00403720
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
cmp eax, ecx
je 0x40356b
push eax
call fcn.00473a61
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [ecx]
push eax
push edx
push str.VendorName:__s___s___for__s
call fcn.004261a0
mov edi, dword [ebp - 0x18]
add esp, 0x10
test edi, edi
je 0x403596
push edi
call fcn.00472958
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.WARNING:_null_filename_for_ver_block_retrieval
call fcn.004261a0
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4