Function at 0x10008efd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005cf31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
cmp byte [ebp + 0x1c], 0
push ebx
push esi
push edi
mov dword [esp + 0x20], ecx
je 0x10008fe7
cmp byte [ebp + 0x18], 0
je 0x10008fd4
mov ecx, dword [ebp + 0x10]
xor esi, esi
push 0x18
pop edi
mov ebx, esi
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
idiv edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x10009169
mov edi, esi
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
add edx, edi
call fcn.10007a1c
test al, al
je 0x10008fb3
mov eax, dword [ebp + 0x24]
sub esp, 0x18
mov ecx, esp
mov eax, dword [eax]
add eax, edi
push eax
call fcn.10001e44
lea ecx, [esp + 0x3c]
call fcn.1000711e
add esp, 0x18
lea ecx, [esp + 0x24]
mov dword [esp + 0x84], esi
call fcn.10008e97
test eax, eax
je 0x10008fc6
cmp eax, 2
je 0x10008fc6
cmp eax, 3
je 0x10008fc6
or dword [esp + 0x84], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.1000a17b
inc ebx
add edi, 0x18
cmp ebx, dword [esp + 0x18]
jge 0x10009169
mov ecx, dword [ebp + 0x10]
jmp 0x10008f56
lea ecx, [esp + 0x24]
call fcn.1000a17b
jmp 0x10009169
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xc74a
jmp 0x10009169
mov dword [esp + 0x14], 0x1d49
cmp dword [esp + 0x14], 0x20e7
push 0
pop esi
jle 0x10009044
mov edi, esi
mov ebx, esi
mov dword [esp + 0x10], 0x1bae
mov eax, ebx
lea ecx, [esp + 0x30]
cdq
push edx
push eax
call fcn.10001a85
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10009020
mov eax, dword [eax]
push eax
call fcn.10045794
pop ecx
push esi
push 1
lea ecx, [esp + 0x38]
call fcn.1000224a
add ebx, edi
dec dword [esp + 0x10]
jne 0x10009008
inc edi
cmp edi, 0x2fc0
jl 0x10008ffe
cmp dword [esp + 0x14], 0x1c06
jge 0x10009059
push str.njlbwur_zukbvc_anzwmd_kwzzpml_hst_fsurztgo_thh_tisqawaa_lunfxbdk
call fcn.10045794
pop ecx
or dword [esp + 0x84], 0xffffffff
cmp byte [ebp + 0x28], 0
je 0x10009156
mov dword [esp + 0x18], 0x7f60
cmp dword [esp + 0x18], 0x8018
jle 0x100090fb
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, esi
mov dword [esp + 0x10], esi
mov ebx, esi
mov dword [esp + 0x14], esi
lea eax, [ebx + edi]
mov ebx, 0x4283
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, edi
lea ecx, [esp + 0x48]
cdq
push edx
push eax
call fcn.10001a85
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100090b6
mov eax, dword [eax]
push eax
call fcn.10045794
pop ecx
push esi
push 1
lea ecx, [esp + 0x50]
call fcn.1000224a
dec edi
dec ebx
jne 0x1000909e
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, 0x2189
jl 0x10009090
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x3ad9
jl 0x1000908a
push 0x1882
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [esp + 0x18], 0x7bb2
jge 0x10009110
push str.zhymtagtj_oukvvcx_pnbczpp_fmqt_vko_cfuizv
call fcn.10045794
pop ecx
mov eax, dword [ebp + 0x30]
or dword [esp + 0x84], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
push eax
call fcn.10009762
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x88], 5
call fcn.10009822
push esi
push 1
lea ecx, [esp + 0x68]
call fcn.100023b6
jmp 0x10009169
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
je 0x10009169
push 0x164c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret