Function at 0x402d2f
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4379b2
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x449828]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449828]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
push 0
mov esi, ecx
call fcn.0040a1c9
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004070d4
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x270], 0
call fcn.00406699
mov ecx, dword [esi + 0x48]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401af0
mov byte [esp + 0x26c], 1
call fcn.00405d08
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402ce6
push 0x80004005
call fcn.00401120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x26c], 2
call fcn.00402710
mov ecx, eax
call fcn.00402420
mov eax, dword [eax]
push 0x43abbc
push eax
call fcn.004230ff
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
jne 0x402d2f
push 0x16
push str.http:__staff.krx.co.kr
jmp 0x402d36
push 0x17
push str.http:__filing.krx.co.kr
call fcn.00401970
mov edi, dword [esp + 0x18]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push edi
mov dword [esp + 0x28], edi
call fcn.00401f30
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00402960
add esp, 4
push 0x104
lea ecx, [esp + 0x160]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x15c]
push 0x5c
push edx
call fcn.00422d60
add esp, 8
mov byte [eax + 1], 0
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.KINDEditor.Cab
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402f1c
call fcn.00405d08
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402ddf
push 0x80004005
call fcn.00401120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push str._common_down_KINDEditor.cab
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
mov bl, 3
push edx
mov byte [esp + 0x278], bl
call fcn.00402630
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x270], 4
call fcn.00402590
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x26c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00401af0
mov ebp, dword [esp + 0x28]
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push esi
mov byte [esp + 0x278], 5
call fcn.00401f30
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x274], bl
call fcn.00402020
add esp, 8
push 0
push 0
push ebp
mov edi, eax
call fcn.00406393
test edi, edi
jne 0x402ef7
push edi
push edi
push str.KINDEditor.cab
call fcn.00406393
mov byte [esp + 0x26c], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402ec9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x26c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403038
mov byte [esp + 0x26c], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f18
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [esp + 0x20]
push 0x44acc8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.KIND_
push 0x44acc8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x44acc8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x58]
push eax
call fcn.00401de0
add esp, 4
test al, al
je 0x402fb1
push str.advpack.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x402fb1
push str.RunSetupCommand
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402fa4
push 0
push 1
lea ecx, [esp + 0x34]
push ecx
push str.KINDEditor_Install
push 0x44acc8
push 0
push 0x44abc0
push 0
call eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402fb5
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402fb5
mov esi, dword [esp + 0x14]
test esi, esi
jge 0x402fee
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x14]
push 0x40030
push str.RunSetupCommand___Error_:
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403017
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x44acc8
call fcn.00401af0
call fcn.00402780
add esp, 8
push 0
push 0x40
push str.KIND_f
call fcn.00406393
mov byte [esp + 0x26c], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403038
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x26c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x26c], 0xffffffff
call fcn.00407118
xor eax, eax
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00422cfe
add esp, 0x25c
ret