Function at 0x1000289f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10008374
call fcn.10003b28
sub esp, 0x450
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10002ab1
mov ebx, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebx], esi
jne 0x10002736
call fcn.10002584
mov dword [ebx], eax
cmp dword [ebp + 0x14], esi
jne 0x10002743
call fcn.10002584
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push ebx
call fcn.1000237c
mov edi, dword [ebp + 0x14]
push edi
call fcn.100022bd
push esi
mov dword [ebp + 0x14], eax
call fcn.10003673
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 0x14]
jle 0x10002770
sub eax, dword [ebp + 0x14]
add dword [ebx], eax
jmp 0x10002786
sub edi, esi
push edi
call fcn.10003668
cmp eax, 0x8ca0
pop ecx
jle 0x10002786
add dword [ebx], 0x15180
cmp esi, dword [ebx]
mov dword [ebp + 0x14], esi
jle 0x1000278f
mov dword [ebx], esi
lea eax, [ebp - 0x150]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10003210
lea eax, [ebp - 0x254]
push 0x10001220
push eax
call fcn.10003220
lea eax, [ebp - 0x14]
xor esi, esi
push eax
lea eax, [ebp - 0x150]
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
push eax
call fcn.100025b5
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10003220
add esp, 0x24
cmp dword [ebp - 0x1c], esi
jbe 0x100028a3
lea eax, [ebp - 0x254]
mov dword [ebp - 4], esi
push eax
call fcn.10003190
mov edi, eax
mov eax, dword [ebp - 0x1c]
inc edi
lea eax, [edi + eax + 0xc]
push eax
call fcn.10003175
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 0x14]
lea eax, [esi + edi + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
push eax
call fcn.10002591
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [esi + edi + 0xc]
push dword [ebx]
push dword [ebp + 0xc]
push eax
call fcn.10002222
lea eax, [ebp - 0x254]
push edi
push eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x57346784
mov dword [esi + 4], edi
call fcn.10002e40
mov eax, dword [ebp - 0x1c]
push 4
mov dword [esi + edi + 8], eax
mov eax, dword [0x100084e4]
add eax, esi
push 0x100084e8
lea eax, [eax + edi + 0xc]
push eax
call fcn.10002e40
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [edi + eax + 0xc]
push eax
push esi
call sym.HCADHook.dat_Ordinal_3
add esp, 0x44
push esi
call fcn.10002e34
pop ecx
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10003639
pop ecx
lea eax, [ebp - 0x150]
push eax
call fcn.10003646
and eax, 0xffff
mov ebx, 0x100084f0
push eax
push 0x1000121c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.10003210
pop ecx
lea eax, [ebp - 0x150]
pop ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10003210
lea eax, [ebp - 0x254]
push 0x10001220
push eax
call fcn.10003220
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x150]
push dword [ebp + 8]
push eax
call fcn.100025b5
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10003220
add esp, 0x24
cmp dword [ebp - 0x1c], 0
jbe 0x10002a12
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 2
push eax
call fcn.10003190
mov edi, eax
mov eax, dword [ebp - 0x1c]
inc edi
lea eax, [edi + eax + 0xc]
push eax
call fcn.10003175
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 0x14]
lea eax, [esi + edi + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
push eax
call fcn.10002591
push dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [eax]
lea eax, [esi + edi + 0xc]
push dword [ebp + 0xc]
push eax
call fcn.100021e2
lea eax, [ebp - 0x254]
push edi
push eax
lea eax, [esi + 8]
push eax
mov dword [esi], 0x57346784
mov dword [esi + 4], edi
call fcn.10002e40
mov eax, dword [ebp - 0x1c]
push 0x11c
mov dword [esi + edi + 8], eax
mov eax, dword [0x100084e0]
add eax, esi
push 0x100084ec
lea eax, [eax + edi + 0xc]
push eax
call fcn.10002e40
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [edi + eax + 0xc]
push eax
push esi
call sym.HCADHook.dat_Ordinal_3
add esp, 0x48
push esi
call fcn.10002e34
pop ecx
jmp 0x10002a0e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x150]
push dword [ebp + 8]
push eax
call fcn.100025b5
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
jbe 0x10002a9c
push ebx
mov dword [ebp - 4], 4
call fcn.10003190
mov esi, eax
mov eax, dword [ebp - 0x1c]
inc esi
lea eax, [esi + eax + 0xc]
push eax
call fcn.10003175
pop ecx
mov edi, eax
pop ecx
push dword [ebp - 0x14]
lea eax, [edi + esi + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
push eax
call fcn.10002591
mov dword [ebp - 0x14], eax
push esi
lea eax, [edi + 8]
push ebx
push eax
mov dword [edi], 0x57346784
mov dword [edi + 4], esi
call fcn.10002e40
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [esi + eax + 0xc]
push eax
push edi
call sym.HCADHook.dat_Ordinal_3
push edi
call fcn.10002e34
add esp, 0x2c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp dword [esi], edi
jne 0x10002ac1
call fcn.10002584
mov dword [esi], eax
cmp dword [ebp + 0x14], edi
jne 0x10002ace
call fcn.10002584
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push esi
call fcn.1000237c
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x14], eax
call fcn.100022bd
push edi
mov dword [ebp + 0x14], eax
call fcn.10003673
mov ebx, eax
add esp, 0x10
cmp ebx, dword [ebp + 0x14]
jle 0x10002afe
sub eax, dword [ebp + 0x14]
add dword [esi], eax
jmp 0x10002b17
mov eax, dword [ebp - 0x14]
sub eax, ebx
push eax
call fcn.10003668
cmp eax, 0x8ca0
pop ecx
jle 0x10002b17
add dword [esi], 0x15180
cmp ebx, dword [esi]
mov dword [ebp + 0x14], ebx
jle 0x10002b20
mov dword [esi], ebx
lea eax, [ebp - 0x358]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x358]
push 0x10001220
push eax
call fcn.10003220
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push eax
call fcn.100025b5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.10003220
add esp, 0x1c
cmp dword [ebp - 0x18], edi
jbe 0x10002c4a
push dword [ebp - 0x18]
mov dword [ebp - 4], 6
call fcn.10003175
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
call fcn.10002591
push dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.10002222
add esp, 0x20
lea eax, [ebp - 0x358]
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002c30
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [0x100084e4]
mov ecx, dword [ebp - 0x14]
push 4
add ecx, eax
push 0x100084e8
push ecx
call fcn.10002e40
add esp, 0xc
lea eax, [ebp - 0x18]
push edi
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.10002e34
pop ecx
jmp 0x10002c46
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10003639
pop ecx
lea eax, [ebp - 0x45c]
push eax
call fcn.10003646
and eax, 0xffff
mov ebx, 0x100084f0
push eax
push 0x1000121c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x45c]
push eax
push ebx
call fcn.10003210
pop ecx
lea eax, [ebp - 0x358]
pop ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push eax
call fcn.100025b5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.10003220
add esp, 0x14
cmp dword [ebp - 0x18], edi
jbe 0x10002da7
push dword [ebp - 0x18]
mov dword [ebp - 4], 8
call fcn.10003175
pop ecx
mov dword [ebp + 0x10], eax
push dword [ebp - 0x24]
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
call fcn.10002591
push dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
push dword [ebp + 0x14]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.100021e2
add esp, 0x24
lea eax, [ebp - 0x358]
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002d8b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [0x100084e0]
mov ecx, dword [ebp + 0x10]
push 0x11c
add ecx, eax
push 0x100084ec
push ecx
call fcn.10002e40
add esp, 0xc
lea eax, [ebp - 0x18]
push edi
push eax
push dword [ebp - 0x18]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call fcn.10002e34
pop ecx
jmp 0x10002da3
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push eax
call fcn.100025b5
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
jbe 0x10002a9c
push eax
mov dword [ebp - 4], 0xa
call fcn.10003175
pop ecx
mov esi, eax
push dword [ebp - 0x24]
push dword [ebp + 8]
push dword [ebp - 0x18]
push esi
call fcn.10002591
add esp, 0x10
mov dword [ebp - 0x24], eax
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002e22
lea eax, [ebp - 0x18]
push edi
push eax
push dword [ebp - 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10002e34
pop ecx
jmp 0x10002a9c