Function at 0x4a8d10
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e8b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
mov esi, ecx
call fcn.0050a4d0
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x2dc]
push eax
push 0x5a39dc
push ecx
call fcn.0050a180
mov eax, dword [esi + 4]
add esp, 0x10
lea edx, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
push 3
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esi + 0x2dc], 0
mov dword [ebp - 0x10], eax
je 0x4a8da1
mov eax, dword [esi + 0x540]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0xffffffd3
sub edx, dword [ebp - 0x10]
jmp 0x4a8da8
mov edx, 0xffffff52
sub edx, eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0x798]
add ecx, edx
mov edx, dword [ebp - 0x2c]
push 0x40
mov dword [ebp - 0x28], ecx
sub ecx, dword [ebp - 0x30]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x34]
sub edx, ecx
push edx
mov edx, dword [ebp - 0x30]
push edx
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
push 0x44
add eax, 3
sub ebx, eax
push ebx
sub edi, ecx
push edi
push eax
push ecx
mov ecx, dword [esi + 0x2c0]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0x790]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x5a8], 0
jne 0x4a8e30
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esi + 0xa0]
call fcn.004f9c70
mov ecx, dword [esi + 0x5a8]
push eax
call fcn.00510b90
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4a8ea4
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0x104
push edi
push str.LogsDir
push ecx
call fcn.0050a330
add esp, 0x10
test eax, eax
jne 0x4a8f64
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4a8ee7
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov edi, dword [ebp - 0x10]
push edi
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4a8f16
push str.SHGetFolderPathW__0__0x001a__0__SHGFP_TYPE_DEFAULT__strSysDir.GetBuffer__260__
push eax
lea ecx, [ebp - 0x44]
call fcn.00434a80
push 0x5cc0a0
lea edx, [ebp - 0x44]
push edx
call fcn.00554cbc
test edi, edi
jne 0x4a8f1e
xor eax, eax
jmp 0x4a8f34
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8f23
sub eax, edx
sar eax, 1
js 0x4a8f5a
cmp eax, dword [edi - 8]
jg 0x4a8f5a
push 0x5a3acc
lea edx, [ebp - 0x10]
xor ecx, ecx
push str._sData_
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], cx
call fcn.0040a750
add esp, 0xc
jmp 0x4a8f9f
push 0x80070057
call fcn.00401150
test edi, edi
jne 0x4a8f6c
xor eax, eax
jmp 0x4a8f82
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8f71
sub eax, edx
sar eax, 1
js 0x4a8f5a
cmp eax, dword [edi - 8]
jg 0x4a8f5a
xor ecx, ecx
mov dword [edi - 0xc], eax
push 6
mov word [edi + eax*2], cx
push 0x59e4c8
lea ecx, [ebp - 0x10]
call fcn.00406040
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004a8160
mov eax, dword [esi + 0x5a8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00425d90
mov byte [ebp - 4], 4
push 0x59e4c4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00425e40
mov byte [ebp - 4], 5
push 0x5a3b18
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00425e40
add esp, 0x24
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a9013
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 9
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x780]
mov edx, dword [esi + 0x784]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x788]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x78c]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x770]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x774]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x778]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x77c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov edi, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.004021d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x2bc]
mov byte [ebp - 4], bl
call fcn.004a5e70
mov eax, dword [esi + 0x790]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a90e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a912f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret