Function at 0x40c110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dab62
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x65b4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x354], ecx
mov ecx, dword [ebp - 0x354]
call fcn.00412cc0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x354]
add ecx, 0xc
call fcn.00412cc0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x354]
add ecx, 0x18
call fcn.0040c800
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x354]
add ecx, 0x28
call fcn.0040c0f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x354]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x354]
add ecx, 0x44
call fcn.0040c000
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x354]
add ecx, 0x60
call fcn.0040c000
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x354]
add ecx, 0x7c
call fcn.0040c000
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x354]
add ecx, 0x98
call fcn.0040c000
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x354]
add ecx, 0xb4
call fcn.0040c000
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x354]
add ecx, 0xd0
call fcn.0040c000
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x354]
add ecx, 0xec
call fcn.0040c000
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x354]
add ecx, 0x108
call fcn.0040c000
mov byte [ebp - 4], 0xb
push 0
push 0
mov ecx, dword [ebp - 0x354]
add ecx, 0x124
call fcn.0050a6b0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x150], 0
mov ecx, dword [ebp - 0x354]
add ecx, 0x15c
call fcn.0040c000
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x354]
mov dword [edx + 0x180], 0
mov eax, dword [ebp - 0x354]
mov dword [eax + 0x184], 0
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x188], 0
mov edx, dword [ebp - 0x354]
mov dword [edx + 0x18c], 0
mov eax, dword [ebp - 0x354]
mov dword [eax + 0x190], 0
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x194], 0
push 0x60a0e2
mov ecx, dword [ebp - 0x354]
add ecx, 0x198
call fcn.0040bf50
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x354]
mov dword [edx + 0x1b4], 0
push 0x60a0e3
mov ecx, dword [ebp - 0x354]
add ecx, 0x1b8
call fcn.0040bf50
mov byte [ebp - 4], 0xf
push 0x60a0e6
mov ecx, dword [ebp - 0x354]
add ecx, 0x1d4
call fcn.0040bf50
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x354]
mov dword [eax + 0x1f4], 0
mov ecx, dword [ebp - 0x354]
add ecx, 0x1f8
call fcn.0040c000
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x28c]
push ecx
push 0x628980
call fcn.0051b730
add esp, 8
mov dword [ebp - 0x54], 0x100000
mov dword [ebp - 0x50], 0
push 1
lea edx, [ebp - 0x2e0]
push edx
call fcn.005000f0
add esp, 8
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 0x12
push 0x5c
mov ecx, dword [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x2fc]
push edx
call fcn.00414720
add esp, 0xc
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 0x13
push 0x628990
mov ecx, dword [ebp - 0x364]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00404a40
add esp, 0xc
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2fc]
call fcn.0040c050
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2e0]
call fcn.0040c050
lea ecx, [ebp - 0x48]
call fcn.0040bf30
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051b970
mov byte [ebp - 4], 0x17
push 0x60a0e7
push str.CategoryCode
push 0x6289ac
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051b9f0
mov byte [ebp - 4], 0x18
push str.YW_SG
lea ecx, [ebp - 0x2a8]
call fcn.0040bf30
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x40c4a6
push str.YW_NACS
lea ecx, [ebp - 0x2a8]
call fcn.0040bf30
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x40c4a6
push str.YW_ABPS
lea ecx, [ebp - 0x2a8]
call fcn.0040bf30
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
jne 0x40c4b4
mov dword [ebp - 0x54], 0x3200000
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x288]
cmp ecx, dword [ebp - 0x50]
jb 0x40c4ed
ja 0x40c4cc
mov edx, dword [ebp - 0x28c]
cmp edx, dword [ebp - 0x54]
jb 0x40c4ed
push 0x6289d0
call fcn.00503060
add esp, 4
push 0
push str.c:ywSMP.log.bak
push str.c:ywSMP.log
call fcn.004fe150
add esp, 0xc
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x178], eax
mov byte [ebp - 0x284], 0
push 0x103
push 0
lea edx, [ebp - 0x283]
push edx
call fcn.005b4520
add esp, 0xc
push 1
lea eax, [ebp - 0x318]
push eax
call fcn.005000f0
add esp, 8
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x36c]
call fcn.0040bf30
push eax
lea edx, [ebp - 0x284]
push edx
call fcn.004147b0
add esp, 8
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x318]
call fcn.0040c050
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x354]
add ecx, 0x44
call fcn.0040bee0
push 0x628a08
mov ecx, dword [ebp - 0x354]
add ecx, 0x44
call fcn.004024c0
mov ecx, dword [ebp - 0x354]
add ecx, 0x44
push ecx
mov ecx, dword [ebp - 0x354]
add ecx, 0x60
call fcn.0040c030
call fcn.00513ab0
mov edx, dword [ebp - 0x354]
mov dword [edx + 0x184], eax
call fcn.005140c0
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x188], eax
mov byte [ebp - 0x15c], 0
push 0x103
push 0
lea edx, [ebp - 0x15b]
push edx
call fcn.005b4520
add esp, 0xc
push 0x104
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x15c]
add ecx, 0xffffffff
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
mov al, byte [edx + 1]
mov byte [ebp - 0x371], al
add dword [ebp - 0x370], 1
cmp byte [ebp - 0x371], 0
jne 0x40c60c
mov edi, dword [ebp - 0x370]
mov ecx, dword [str._temp]
mov dword [edi], ecx
mov dx, word [0x628a10]
mov word [edi + 4], dx
lea eax, [ebp - 0x15c]
push eax
call fcn.005cdb1d
add esp, 4
mov ecx, dword [ebp - 0x354]
call fcn.0040cad0
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x194], eax
push 1
lea edx, [ebp - 0x334]
push edx
call fcn.005000f0
add esp, 8
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x37c], eax
mov byte [ebp - 4], 0x1a
push 0x5c
mov ecx, dword [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x350]
push edx
call fcn.00414720
add esp, 0xc
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x384], eax
mov byte [ebp - 4], 0x1b
push str.fun_config.ini
mov ecx, dword [ebp - 0x384]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call fcn.00404a40
add esp, 0xc
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x350]
call fcn.0040c050
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x334]
call fcn.0040c050
lea ecx, [ebp - 0x2c4]
call fcn.0040bf30
push eax
lea ecx, [ebp - 0x178]
call fcn.0051b970
mov byte [ebp - 4], 0x1f
push 0
push 0x628a24
push 0x628a2c
lea ecx, [ebp - 0x178]
call fcn.0051bdb0
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x1f0], eax
mov ecx, dword [ebp - 0x354]
call fcn.004129c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x178]
call fcn.00415550
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c4]
call fcn.0040c050
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2a8]
call fcn.0040c050
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c]
call fcn.00415550
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x48]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret