Function at 0x40fb70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4a57cc]
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40fcc0
lea ecx, [ebp - 0x218]
add ecx, 0xffffffff
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x220]
mov al, byte [edx + 1]
mov byte [ebp - 0x221], al
inc dword [ebp - 0x220]
cmp byte [ebp - 0x221], 0
jne 0x40fbb8
mov edi, dword [ebp - 0x220]
mov cx, word [0x489ff0]
mov word [edi], cx
lea edx, [ebp - 0x218]
add edx, 0xffffffff
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
mov cl, byte [eax + 1]
mov byte [ebp - 0x229], cl
inc dword [ebp - 0x228]
cmp byte [ebp - 0x229], 0
jne 0x40fbf5
mov edi, dword [ebp - 0x228]
mov edx, dword [str.NxConn.ocx]
mov dword [edi], edx
mov eax, dword [0x489ff8]
mov dword [edi + 4], eax
mov cx, word [0x489ffc]
mov word [edi + 8], cx
mov dl, byte [0x489ffe]
mov byte [edi + 0xa], dl
lea eax, [ebp - 0x218]
push eax
call fcn.00415990
add esp, 4
test eax, eax
je 0x40fcc0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], ecx
lea edx, [ebp - 0x110]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x230]
mov dl, byte [ecx]
mov byte [ebp - 0x239], dl
mov eax, dword [ebp - 0x234]
mov cl, byte [ebp - 0x239]
mov byte [eax], cl
mov edx, dword [ebp - 0x230]
add edx, 1
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
cmp byte [ebp - 0x239], 0
jne 0x40fc74
mov dword [ebp - 4], 0
jmp 0x40fce7
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040c240
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], 2
xor edx, edx
jne 0x40fb8f
lea eax, [ebp - 0x218]
push eax
call fcn.004266b0
add esp, 4
lea ecx, [ebp - 0x218]
add ecx, 0xffffffff
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
mov al, byte [edx + 1]
mov byte [ebp - 0x241], al
inc dword [ebp - 0x240]
cmp byte [ebp - 0x241], 0
jne 0x40fd05
mov edi, dword [ebp - 0x240]
mov ecx, dword [0x48a000]
mov dword [edi], ecx
mov edx, dword [0x48a004]
mov dword [edi + 4], edx
mov eax, dword [0x48a008]
mov dword [edi + 8], eax
mov cx, word [0x48a00c]
mov word [edi + 0xc], cx
lea edx, [ebp - 0x218]
push edx
call fcn.00415990
add esp, 4
test eax, eax
jne 0x40fd84
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0x48a010
lea edx, [ebp - 0x218]
push edx
push 0x48a024
call fcn.00415f20
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004266f0
add esp, 4
lea ecx, [ebp - 0x218]
add ecx, 0xffffffff
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x248]
mov al, byte [edx + 1]
mov byte [ebp - 0x249], al
inc dword [ebp - 0x248]
cmp byte [ebp - 0x249], 0
jne 0x40fda2
mov edi, dword [ebp - 0x248]
mov ecx, dword [str.Nexon_]
mov dword [edi], ecx
mov edx, dword [0x48a040]
mov dword [edi + 4], edx
mov eax, dword [0x48a044]
mov dword [edi + 8], eax
mov ecx, dword [0x48a048]
mov dword [edi + 0xc], ecx
mov edx, dword [0x48a04c]
mov dword [edi + 0x10], edx
lea eax, [ebp - 0x218]
push eax
call fcn.00415990
add esp, 4
test eax, eax
jne 0x40fe28
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x48a050
lea eax, [ebp - 0x218]
push eax
push str.http:__www.nexon.com
call fcn.00415f20
add esp, 0x14
mov ecx, dword [ebp - 8]
call fcn.004635af
pop edi
mov esp, ebp
pop ebp
ret