Function at 0x40bff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dbb42
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x65d4e4]
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.00412b60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x354]
add ecx, 0xc
call fcn.00412b60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x354]
add ecx, 0x18
call fcn.0040c6e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x354]
add ecx, 0x28
call fcn.0040bfd0
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.0040bee0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x354]
add ecx, 0x60
call fcn.0040bee0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x354]
add ecx, 0x7c
call fcn.0040bee0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x354]
add ecx, 0x98
call fcn.0040bee0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x354]
add ecx, 0xb4
call fcn.0040bee0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x354]
add ecx, 0xd0
call fcn.0040bee0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x354]
add ecx, 0xec
call fcn.0040bee0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x354]
add ecx, 0x108
call fcn.0040bee0
mov byte [ebp - 4], 0xb
push 0
push 0
mov ecx, dword [ebp - 0x354]
add ecx, 0x124
call fcn.0050b6e0
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.0040bee0
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 0x60b0ee
mov ecx, dword [ebp - 0x354]
add ecx, 0x198
call fcn.0040be30
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x354]
mov dword [edx + 0x1b4], 0
push 0x60b0ef
mov ecx, dword [ebp - 0x354]
add ecx, 0x1b8
call fcn.0040be30
mov byte [ebp - 4], 0xf
push 0x60b0f3
mov ecx, dword [ebp - 0x354]
add ecx, 0x1d4
call fcn.0040be30
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.0040bee0
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x28c]
push ecx
push 0x629ae0
call fcn.0051c6c0
add esp, 8
mov dword [ebp - 0x54], 0x100000
mov dword [ebp - 0x50], 0
push 1
lea edx, [ebp - 0x2e0]
push edx
call fcn.00501110
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.004150f0
add esp, 0xc
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 0x13
push 0x629af0
mov ecx, dword [ebp - 0x364]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00404a60
add esp, 0xc
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2fc]
call fcn.0040bf30
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2e0]
call fcn.0040bf30
lea ecx, [ebp - 0x48]
call fcn.0040be10
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051c900
mov byte [ebp - 4], 0x17
push 0x60b0f6
push str.CategoryCode
push 0x629b0c
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051c980
mov byte [ebp - 4], 0x18
push str.YW_SG
lea ecx, [ebp - 0x2a8]
call fcn.0040be10
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x40c386
push str.YW_NACS
lea ecx, [ebp - 0x2a8]
call fcn.0040be10
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x40c386
push str.YW_ABPS
lea ecx, [ebp - 0x2a8]
call fcn.0040be10
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
jne 0x40c394
mov dword [ebp - 0x54], 0x3200000
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x288]
cmp ecx, dword [ebp - 0x50]
jb 0x40c3cd
ja 0x40c3ac
mov edx, dword [ebp - 0x28c]
cmp edx, dword [ebp - 0x54]
jb 0x40c3cd
push 0x629b30
call fcn.00504080
add esp, 4
push 0
push str.c:ywSMP.log.bak
push str.c:ywSMP.log
call fcn.004ff170
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.005b5540
add esp, 0xc
push 1
lea eax, [ebp - 0x318]
push eax
call fcn.00501110
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.0040be10
push eax
lea edx, [ebp - 0x284]
push edx
call fcn.00415180
add esp, 8
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x318]
call fcn.0040bf30
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x354]
add ecx, 0x44
call fcn.0040bdc0
push 0x629b68
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.0040bf10
call fcn.00514ae0
mov edx, dword [ebp - 0x354]
mov dword [edx + 0x184], eax
call fcn.005150f0
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.005b5540
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 0x40c4ec
mov edi, dword [ebp - 0x370]
mov ecx, dword [str._temp]
mov dword [edi], ecx
mov dx, word [0x629b70]
mov word [edi + 4], dx
lea eax, [ebp - 0x15c]
push eax
call fcn.005ceb3d
add esp, 4
mov ecx, dword [ebp - 0x354]
call fcn.0040ca00
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x194], eax
push 1
lea edx, [ebp - 0x334]
push edx
call fcn.00501110
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.004150f0
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.00404a60
add esp, 0xc
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x350]
call fcn.0040bf30
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x334]
call fcn.0040bf30
lea ecx, [ebp - 0x2c4]
call fcn.0040be10
push eax
lea ecx, [ebp - 0x178]
call fcn.0051c900
mov byte [ebp - 4], 0x1f
push 0
push 0x629b84
push 0x629b8c
lea ecx, [ebp - 0x178]
call fcn.0051cd40
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x1f0], eax
mov ecx, dword [ebp - 0x354]
call fcn.00412890
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x178]
call fcn.0040c790
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c4]
call fcn.0040bf30
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2a8]
call fcn.0040bf30
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c]
call fcn.0040c790
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x48]
call fcn.0040bf30
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.005b1988
mov esp, ebp
pop ebp
ret