Function at 0x10047d30
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1013d0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.10002710
mov edi, eax
test edi, edi
je 0x100480a8
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.10002710
mov edi, eax
test edi, edi
je 0x100480b2
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 4
jge 0x10047dec
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10003450
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
jl 0x100480bc
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100480c6
cmp eax, 0x103
jbe 0x10047e38
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.10047ce0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [ebp - 0x10]
lea edi, [esi - 0x10]
mov dword [ebp - 0x1c], edi
test esi, esi
jne 0x10047e46
xor eax, eax
jmp 0x10047e5a
push dword [edi + 8]
push esi
call fcn.1001174c
add esp, 8
test eax, eax
js 0x100480bc
cmp eax, dword [edi + 8]
jg 0x100480bc
push dword [ebp + 8]
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10036f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1002ee20
mov ecx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add ecx, 0xfffffff0
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10047ebc
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10047f60
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10047ef7
mov ebx, dword [edi]
push edi
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100f4524]
mov ecx, ebx
call edi
or ebx, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10047f18
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x10047f4c
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10047f42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100480ed
push edx
push ecx
call fcn.10005291
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.10047900
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10047ff3
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10047f9f
mov ebx, dword [edi]
push edi
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100f4524]
mov ecx, ebx
call edi
or ebx, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10047fc0
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x10047f4c
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10047f42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100480f2
jmp 0x10047f42
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10100bf8
push dword [ebp - 0x34]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10048093
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
movzx ecx, word [edx + 0x12]
mov word [eax], cx
movzx ecx, word [edx + 0x10]
mov eax, dword [ebp + 0x10]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
movzx ecx, word [edx + 0x16]
mov word [eax], cx
mov eax, dword [ebp + 0x18]
movzx ecx, word [edx + 0x14]
mov word [eax], cx
lea ecx, [ebp - 0x10]
call fcn.10002b10
lea ecx, [ebp - 0x14]
call fcn.10002b10
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1004807f
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10048075
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100480f7
push ecx
push edx
call fcn.10005291
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
call fcn.10002b10
lea ecx, [ebp - 0x14]
call fcn.10002b10
jmp 0x10047f18
push 0x80004005
call fcn.10002de0
push 0x80004005
call fcn.10002de0
push 0x80070057
call fcn.10002de0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10048470
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.10004b50
push 0x10126738
lea eax, [ebp - 0x40]
push eax
call fcn.10006a50
call fcn.1000e987
call fcn.1000e987
call fcn.1000e987
int3