Function at 0x40b700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eeb8f
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x66d4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp - 0x434]
call fcn.004125d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x434]
add ecx, 0xc
call fcn.004125d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x434]
add ecx, 0x18
call fcn.0040bfe0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x434]
add ecx, 0x28
call fcn.0040b6e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x434]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x434]
add ecx, 0x44
call fcn.0040b5f0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x434]
add ecx, 0x60
call fcn.0040b5f0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x434]
add ecx, 0x7c
call fcn.0040b5f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x434]
add ecx, 0x98
call fcn.0040b5f0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x434]
add ecx, 0xb4
call fcn.0040b5f0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x434]
add ecx, 0xd0
call fcn.0040b5f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x434]
add ecx, 0xec
call fcn.0040b5f0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x434]
add ecx, 0x108
call fcn.0040b5f0
mov byte [ebp - 4], 0xb
push 0
push 0
mov ecx, dword [ebp - 0x434]
add ecx, 0x124
call fcn.00523670
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x150], 0
mov ecx, dword [ebp - 0x434]
add ecx, 0x15c
call fcn.0040b5f0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x180], 0
mov eax, dword [ebp - 0x434]
mov dword [eax + 0x184], 0
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x188], 0
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x18c], 0
mov eax, dword [ebp - 0x434]
mov dword [eax + 0x190], 0
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x194], 0
push 0x618327
mov ecx, dword [ebp - 0x434]
add ecx, 0x198
call fcn.0040b540
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x1b4], 0
push 0x61832b
mov ecx, dword [ebp - 0x434]
add ecx, 0x1b8
call fcn.0040b540
mov byte [ebp - 4], 0xf
push 0x61832e
mov ecx, dword [ebp - 0x434]
add ecx, 0x1d4
call fcn.0040b540
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x434]
mov dword [eax + 0x1f4], 0
mov ecx, dword [ebp - 0x434]
add ecx, 0x1f8
call fcn.0040b5f0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x434]
add ecx, 0x214
call fcn.0040b5f0
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x28c]
push ecx
push 0x638e34
call fcn.00530270
add esp, 8
mov dword [ebp - 0x54], 0x100000
mov dword [ebp - 0x50], 0
push 1
lea edx, [ebp - 0x3a4]
push edx
call fcn.00508a90
add esp, 8
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0x13
push 0x5c
mov ecx, dword [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x3c0]
push edx
call fcn.00414ec0
add esp, 0xc
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0x14
push 0x638e44
mov ecx, dword [ebp - 0x444]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004041b0
add esp, 0xc
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x3c0]
call fcn.0040b640
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3a4]
call fcn.0040b640
lea ecx, [ebp - 0x48]
call fcn.0040b520
push eax
lea ecx, [ebp - 0x2c]
call fcn.00516260
mov byte [ebp - 4], 0x18
push 0x61832f
push str.CategoryCode
push 0x638e60
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005162e0
mov byte [ebp - 4], 0x19
push str.YW_SG
lea ecx, [ebp - 0x2cc]
call fcn.0040b520
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
je 0x40baab
push str.YW_NACS
lea ecx, [ebp - 0x2cc]
call fcn.0040b520
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
je 0x40baab
push str.YW_ABPS
lea ecx, [ebp - 0x2cc]
call fcn.0040b520
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
jne 0x40bab9
mov dword [ebp - 0x54], 0x3200000
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x288]
cmp ecx, dword [ebp - 0x50]
jb 0x40baf2
ja 0x40bad1
mov edx, dword [ebp - 0x28c]
cmp edx, dword [ebp - 0x54]
jb 0x40baf2
push 0x638e84
call fcn.0050ba00
add esp, 4
push 0
push str.c:ywSMP.log.bak
push str.c:ywSMP.log
call fcn.00506620
add esp, 0xc
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x178], eax
mov byte [ebp - 0x284], 0
push 0x103
push 0
lea edx, [ebp - 0x283]
push edx
call fcn.005c0cf0
add esp, 0xc
push 1
lea eax, [ebp - 0x3dc]
push eax
call fcn.00508a90
add esp, 8
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x44c], ecx
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x44c]
call fcn.0040b520
push eax
lea edx, [ebp - 0x284]
push edx
call fcn.00414f50
add esp, 8
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x3dc]
call fcn.0040b640
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x44
call fcn.0040b4d0
push 0x638ebc
mov ecx, dword [ebp - 0x434]
add ecx, 0x44
call fcn.004024c0
mov ecx, dword [ebp - 0x434]
add ecx, 0x44
push ecx
mov ecx, dword [ebp - 0x434]
add ecx, 0x60
call fcn.0040b620
call fcn.00515a20
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x184], eax
call fcn.00516030
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x188], eax
mov byte [ebp - 0x15c], 0
push 0x103
push 0
lea edx, [ebp - 0x15b]
push edx
call fcn.005c0cf0
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 - 0x450], ecx
mov edx, dword [ebp - 0x450]
mov al, byte [edx + 1]
mov byte [ebp - 0x451], al
add dword [ebp - 0x450], 1
cmp byte [ebp - 0x451], 0
jne 0x40bc11
mov edi, dword [ebp - 0x450]
mov ecx, dword [str._temp]
mov dword [edi], ecx
mov dx, word [0x638ec4]
mov word [edi + 4], dx
lea eax, [ebp - 0x15c]
push eax
call fcn.005da78d
add esp, 4
mov ecx, dword [ebp - 0x434]
call fcn.0040c2c0
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x194], eax
push 1
lea edx, [ebp - 0x3f8]
push edx
call fcn.00508a90
add esp, 8
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 0x1b
push 0x5c
mov ecx, dword [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.00414ec0
add esp, 0xc
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x464], eax
mov byte [ebp - 4], 0x1c
push str.fun_config.ini
mov ecx, dword [ebp - 0x464]
push ecx
lea edx, [ebp - 0x2e8]
push edx
call fcn.004041b0
add esp, 0xc
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x414]
call fcn.0040b640
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x3f8]
call fcn.0040b640
lea ecx, [ebp - 0x2e8]
call fcn.0040b520
push eax
lea ecx, [ebp - 0x178]
call fcn.00516260
mov byte [ebp - 4], 0x20
push 0
push 0x638ed8
push 0x638ee0
lea ecx, [ebp - 0x178]
call fcn.005166a0
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1f0], eax
push 0x638ee8
mov edx, dword [ebp - 0x434]
add edx, 0x44
push edx
lea eax, [ebp - 0x2b0]
push eax
call fcn.004041b0
add esp, 0xc
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x2b0]
call fcn.0040b520
push eax
call fcn.00507e40
add esp, 4
test eax, eax
jne 0x40bd89
lea ecx, [ebp - 0x2b0]
call fcn.0040b520
push eax
call fcn.00509820
add esp, 4
push 1
push 2
lea ecx, [ebp - 0x36c]
call fcn.0040a750
mov byte [ebp - 4], 0x22
push str.loaddll.log
push 0x638ef8
push 0x638efc
mov ecx, dword [ebp - 0x434]
add ecx, 0x44
call fcn.0040b520
push eax
lea ecx, [ebp - 0x36c]
push ecx
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea edx, [ebp - 0x430]
push edx
lea ecx, [ebp - 0x36c]
call fcn.00408c00
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0x46c]
call fcn.0040b520
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x214
call fcn.0040b4d0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x430]
call fcn.0040b640
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
lea ecx, [ebp - 0x294]
push ecx
mov ecx, dword [ebp - 0x434]
add ecx, 0x214
call fcn.0040b520
push eax
call fcn.00530270
add esp, 8
cmp dword [ebp - 0x290], 0
ja 0x40be82
cmp dword [ebp - 0x294], 0x200000
jb 0x40bef2
push 0x638f00
mov edx, dword [ebp - 0x434]
add edx, 0x214
push edx
lea eax, [ebp - 0x388]
push eax
call fcn.004041b0
add esp, 0xc
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x388]
call fcn.0040b520
push eax
call fcn.0050ba00
add esp, 4
push 0
lea ecx, [ebp - 0x388]
call fcn.0040b520
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x214
call fcn.0040b520
push eax
call fcn.00506620
add esp, 0xc
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x388]
call fcn.0040b640
mov ecx, dword [ebp - 0x434]
call fcn.004121e0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x36c]
call fcn.004094e0
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2b0]
call fcn.0040b640
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x178]
call fcn.004a2dd0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2e8]
call fcn.0040b640
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2cc]
call fcn.0040b640
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
call fcn.004a2dd0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x48]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bd2d7
mov esp, ebp
pop ebp
ret