Function at 0x10059d00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1ae4
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x100d800c]
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 edi, edx
mov eax, ecx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x100], eax
lea ecx, [ebp - 0xfc]
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x28], 0
call fcn.10007900
cmp dword [ebp - 0xe8], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0xfc]
cmovae eax, dword [ebp - 0xfc]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edx, dword [ebp - 0xe8]
mov ebx, eax
cmp edx, 8
jb 0x10059dc1
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10059db7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005a09c
push edx
push ecx
call fcn.1006d8b6
add esp, 8
test ebx, ebx
je 0x1005a0a1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x1c]
push ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10009ee0
mov eax, dword [ebp - 0x1c]
push ebx
push 0
push eax
lea esi, [eax + ebx]
call fcn.10083a60
add esp, 0xc
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0
call fcn.10009e80
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x10059e2f
mov edi, dword [edi]
push dword [ebp - 0x1c]
push ebx
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1005a0c3
lea eax, [ebp - 0x20]
mov dword [ebp - 0xdc], 0
push eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x20], 0
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1005a07b
cmp dword [ebp - 0xdc], 0
je 0x1005a07b
cmp dword [ebp - 0x20], 4
jb 0x1005a07b
push 0xb0
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.10083a60
add esp, 8
lea ecx, [ebp - 0xd8]
call fcn.1002fe40
mov edx, 0x100c7cb4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call fcn.10056070
mov esi, eax
push 0
push 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0xf4]
push eax
call fcn.1007238e
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.10056320
mov ecx, eax
mov esi, 0x30
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov word [eax + ecx + 0x40], si
mov eax, dword [ebp - 0xdc]
movzx eax, word [eax]
push eax
call fcn.1005a150
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xb4]
push 0
push 4
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea eax, [ebp - 0xf4]
push eax
call fcn.1007238e
add esp, 0xc
lea ecx, [ebp - 0xc8]
mov edx, eax
call fcn.10056320
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov word [eax + ecx + 0x40], si
mov eax, dword [ebp - 0xdc]
movzx eax, word [eax + 2]
push eax
call fcn.1005a150
mov ecx, eax
call fcn.1005a300
mov ebx, dword [ebp - 0x100]
mov edx, ebx
cmp dword [ebx + 0x14], 8
jb 0x10059f89
mov edx, dword [ebx]
push dword [ebx + 0x10]
mov ecx, eax
call fcn.1005a6c0
add esp, 4
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0xc0]
push eax
call fcn.10030ff0
cmp dword [ebp - 0xe8], 8
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xe0]
lea eax, [ebp - 0xfc]
cmovae eax, dword [ebp - 0xfc]
push ecx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1005a0e2
cmp dword [ebp - 0xe0], 0
je 0x1005a0e2
cmp dword [ebp - 0x24], 0
jbe 0x1005a0e2
lea ecx, [ebp - 0xfc]
call fcn.10002a60
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x104], ecx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005a020
sub ecx, edx
lea edx, [ebp - 0x104]
sar ecx, 1
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.1005bfc0
lea ecx, [ebp - 0xd8]
call fcn.1002abb0
lea ecx, [ebp - 0x1c]
call fcn.100099b0
mov eax, dword [ebp - 0x10c]
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.1006d58e
mov esp, ebp
pop ebp
ret
push str.Failure_querying_for_VarFileInfoTranslation
lea ecx, [ebp - 0x114]
call fcn.100083f0
push 0x100d6b98
lea eax, [ebp - 0x114]
push eax
call fcn.10083bba
call fcn.100869bf
push str.GetFileVersionInfoSizeW_failed
lea ecx, [ebp - 0xfc]
call fcn.10005d60
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 0
call fcn.1000a520
push str.GetFileVersionInfoW_failed
lea ecx, [ebp - 0xfc]
call fcn.10005d60
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.1000a520
lea ecx, [ebp - 0xfc]
call fcn.10002a60
lea eax, [ebp - 0x110]
mov ecx, ebx
push eax
call fcn.100078e0
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x12c]
call fcn.1005bfc0
push eax
mov edx, str.Failure_querying_for_StringFileInfo..._
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x144]
call fcn.10009e10
add esp, 4
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.10006750
push 0x100d6b98
lea eax, [ebp - 0x108]
push eax
call fcn.10083bba
int3