Function at 0x40f9f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdc04
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
push 0
push 0x66
mov dword [ebp - 0x24c], edi
call fcn.0045ffe3
mov dword [ebp - 4], 0
mov dword [edi], vtable.CKakaoGameDlg.0
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fa56
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xd0], eax
lea ecx, [edi + 0xd4]
mov byte [ebp - 4], 1
call fcn.0047ea67
lea ecx, [edi + 0xe8]
mov byte [ebp - 4], 2
call fcn.0047f69b
mov byte [ebp - 4], 3
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fa9d
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xfc], eax
lea ecx, [edi + 0x100]
mov byte [ebp - 4], 4
call fcn.00438640
mov dword [edi + method.CGopherLocator.virtual_0], vtable.CTrayIconManager.0
mov byte [ebp - 4], 6
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fadf
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x160], eax
mov byte [ebp - 4], 7
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fb08
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x164], eax
mov byte [ebp - 4], 8
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fb31
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x168], eax
mov byte [ebp - 4], 9
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fb5a
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x16c], eax
mov byte [ebp - 4], 0xa
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fb83
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x170], eax
mov byte [ebp - 4], 0xb
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fbac
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x174], eax
mov byte [ebp - 4], 0xc
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fbd5
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x178], eax
mov byte [ebp - 4], 0xd
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fbfe
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x17c], eax
lea ecx, [edi + 0x180]
mov byte [ebp - 4], 0xe
call fcn.00459810
push 0x61b534
lea ecx, [edi + 0x230]
mov byte [ebp - 4], 0x10
call fcn.00406cf0
push 0x61b534
lea ecx, [edi + 0x234]
call fcn.00406cf0
mov byte [ebp - 4], 0x11
mov dword [edi + 0x23c], 0
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fc64
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x240], eax
push 0x61b534
lea ecx, [edi + 0x248]
mov byte [ebp - 4], 0x13
call fcn.00406cf0
push 0x61b534
lea ecx, [edi + 0x24c]
call fcn.00406cf0
mov byte [ebp - 4], 0x14
call fcn.0045fe71
mov ecx, eax
test ecx, ecx
jne 0x40fcb1
push 0x80004005
call fcn.00402d80
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x250], eax
mov byte [ebp - 4], 0x15
call fcn.0046d46c
call fcn.0046d46c
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x208
mov dword [edi + 0x254], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a7a20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x61b534
lea ecx, [edi + 0xd0]
call fcn.00403da0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x164]
call fcn.00403da0
push 0x5c
push dword [edi + 0x164]
call fcn.005a6ed4
add esp, 8
test eax, eax
jne 0x40fd6b
or eax, 0xffffffff
jmp 0x40fd73
sub eax, dword [edi + 0x164]
sar eax, 1
inc eax
lea ecx, [edi + 0x164]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0041adf0
push eax
lea ecx, [edi + 0x160]
mov byte [ebp - 4], 0x16
call fcn.00403f70
mov byte [ebp - 4], 0x15
or esi, 0xffffffff
mov edx, dword [ebp - 0x240]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fdbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [edi + 0x164]
call fcn.005a6ed4
add esp, 8
test eax, eax
jne 0x40fdd4
or eax, 0xffffffff
jmp 0x40fddc
sub eax, dword [edi + 0x164]
sar eax, 1
inc eax
lea ecx, [edi + 0x164]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00405440
push eax
lea ecx, [edi + 0x168]
mov byte [ebp - 4], 0x17
call fcn.00403f70
mov byte [ebp - 4], 0x15
mov eax, esi
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fe21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x168]
mov byte [edi + 0x238], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x16c]
call fcn.00403da0
push 0x61b530
lea eax, [edi + 0x16c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d830
push str.Kakao
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x18
push eax
call fcn.0040d830
push 0x61b530
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x19
push eax
call fcn.0040d830
push 0x61b444
push eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1a
push eax
call fcn.0040d830
push 0x61b530
push eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x1b
push eax
call fcn.0040d830
add esp, 0x3c
push eax
lea ecx, [edi + 0x170]
mov byte [ebp - 4], 0x1c
call fcn.00403f70
mov byte [ebp - 4], 0x1b
mov eax, esi
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1a
mov eax, esi
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, esi
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov eax, esi
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.down
lea eax, [edi + 0x170]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040d830
push 0x61b530
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x1d
push eax
call fcn.0040d830
add esp, 0x18
push eax
lea ecx, [edi + 0x174]
mov byte [ebp - 4], 0x1e
call fcn.00403f70
mov byte [ebp - 4], 0x1d
mov eax, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fffc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, esi
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41001d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x61c9fc
lea eax, [edi + 0x170]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0040d830
push 0x61b530
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x1f
push eax
call fcn.0040d830
add esp, 0x18
push eax
lea ecx, [edi + 0x178]
mov byte [ebp - 4], 0x20
call fcn.00403f70
mov byte [ebp - 4], 0x1f
mov eax, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41007f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, esi
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4100a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x61b534
lea ecx, [edi + 0x17c]
call fcn.00403da0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0xe8]
call fcn.0047f9f1
push 0
push 0x61b534
lea ecx, [edi + 0xfc]
call fcn.00403da0
push 0x61b534
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x244], 0
mov dword [ebp - 0x21c], 0
call fcn.00406cf0
xorps xmm0, xmm0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x234]
movq qword [ebp - 0x224], xmm0
movups xmmword [ebp - 0x234], xmm0
call fcn.00470cbb
push str.server_type.ini
lea eax, [edi + 0x170]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d830
add esp, 0xc
push 0
push 0
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x234]
push dword [eax]
call fcn.004710be
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x238], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410173
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x238], 0
je 0x41018e
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0047124b
lea ecx, [ebp - 0x21c]
call fcn.0040d300
mov ecx, eax
call fcn.0040d250
mov eax, dword [ebp - 0x21c]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x4101b7
push 0x80070057
call fcn.00402d80
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4101da
push esi
lea ecx, [ebp - 0x21c]
call fcn.00403c60
mov eax, dword [ebp - 0x21c]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005ae806
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4101ad
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov edx, 0x61c4e4
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x21c]
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x410236
test si, si
je 0x410232
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x410236
add ecx, 4
add edx, 4
test si, si
jne 0x410210
xor ecx, ecx
jmp 0x41023b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
test cl, cl
je 0x410250
mov dword [edi + 0x244], 1
jmp 0x4102b7
mov ecx, 0x61c528
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41027b
test dx, dx
je 0x410277
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41027b
add eax, 4
add ecx, 4
test dx, dx
jne 0x410255
xor eax, eax
jmp 0x410280
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x410295
mov dword [edi + 0x244], 2
jmp 0x4102b7
lea eax, [ebp - 0x21c]
push eax
push 0x61c574
call fcn.0040d190
add esp, 8
test al, al
je 0x4102b7
mov dword [edi + 0x244], 3
push 0x24
push str.http:__cafe.daum.net_starplayservice
lea ecx, [edi + 0x250]
call fcn.00403da0
push dword [edi + 0x244]
call fcn.00404190
mov ecx, eax
call fcn.004255e0
lea ecx, [ebp - 0x234]
call fcn.00470cf0
mov byte [ebp - 4], 0x15
or eax, 0xffffffff
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410308
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a3521
mov esp, ebp
pop ebp
ret 4