Function at 0xc2e9fd
Capabilities:
Create directory
Delete file
Get common file path
Get file size
Query or enumerate registry value
Read .ini file
Read file on windows

Disassembly:
mov eax, 0xc49c7d
call fcn.00c35038
sub esp, 0xd84
and dword [0xc5a808], 0
push edi
call fcn.00c2d23c
test eax, eax
jne 0xc2ea2d
push 2
pop edi
call fcn.00c2cf1e
xor eax, eax
jmp 0xc2f356
push esi
mov esi, 0xc5a3d8
push esi
push str.http:__
mov dword [0xc5a810], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
lea eax, [ebp - 0x360]
jne 0xc2ea93
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0xc2ea80
cmp byte [ebp + eax - 0x360], 0x5c
je 0xc2ea85
dec eax
jns 0xc2ea76
jmp 0xc2ea97
push 0xc4b518
lea eax, [ebp + eax - 0x35f]
jmp 0xc2ea94
push esi
push eax
call edi
mov eax, dword [0xc59bbc]
add eax, 0x84
cmp dword [eax + 0x18], 0x10
jb 0xc2eaac
mov eax, dword [eax + 4]
jmp 0xc2eaaf
add eax, 4
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0xc4badc
push 0xc5a91c
call ebx
mov eax, dword [0xc59bbc]
add esp, 0xc
cmp dword [eax + 0x28], 0x10
jb 0xc2ead6
mov eax, dword [eax + 0x14]
jmp 0xc2ead9
add eax, 0x14
push eax
push str.software_neowiz_
push 0xc4bac4
mov esi, 0xc59fc0
push esi
call ebx
add esp, 0x10
call fcn.00c2d225
push 0xf003f
push esi
mov edi, bind
push edi
mov ecx, 0xc5a80c
call fcn.00c20050
mov eax, dword [0xc59bbc]
cmp dword [eax + 8], 0
je 0xc2ebec
cmp byte [0xc5a2d0], 0
jne 0xc2ebe0
lea eax, [ebp - 0x360]
push eax
push 0x104
lea eax, [ebp - 0x1f8]
push eax
push 0xc4b60c
push str.InstallPath
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0xc2eb5f
push 0xe
pop edi
call fcn.00c2cf1e
jmp 0xc2f354
push 0xf003f
push str.SoftwareNeowizPmangInstall
mov esi, 0xc5a80c
push edi
mov ecx, esi
call fcn.00c20050
xor eax, eax
mov byte [ebp - 0x968], 0
and dword [ebp - 0x14], 0
mov ecx, 0xff
lea edi, [ebp - 0x967]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.root
push dword [0xc5a80c]
mov dword [ebp - 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x968]
push eax
push 0xc4bac4
push 0xc5a2d0
call ebx
add esp, 0x10
mov ecx, esi
call fcn.00c10af0
mov esi, 0xc5a2d0
call fcn.00c2d225
jmp 0xc2ec2b
push 0xf003f
push esi
push edi
mov ecx, 0xc5a80c
call fcn.00c20050
push 0xc5a1c8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0xc2ec21
push 0x103
push 0xc5a1c8
push 0xc5a2d0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0xc5a80c
call fcn.00c10af0
lea ecx, [ebp - 0xd90]
call fcn.00c30fd6
mov eax, dword [0xc59bbc]
xor esi, esi
cmp dword [eax + 0x48], esi
mov dword [ebp - 4], esi
je 0xc2ecb3
push 0xc598a8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0xc59bbc]
cmp dword [eax + 0x64], 0x10
jb 0xc2ec65
mov eax, dword [eax + 0x50]
jmp 0xc2ec68
add eax, 0x50
push eax
push 0xc5a1c8
lea eax, [ebp - 0x464]
push 0xc4bac4
push eax
call ebx
mov eax, dword [0xc59bbc]
add esp, 0x10
cmp dword [eax + 0x64], 0x10
jb 0xc2ec8f
mov ecx, dword [eax + 0x50]
jmp 0xc2ec92
lea ecx, [eax + 0x50]
cmp dword [eax + 0x44], 0x10
jb 0xc2ec9d
mov eax, dword [eax + 0x30]
jmp 0xc2eca0
add eax, 0x30
push ecx
push eax
lea eax, [ebp - 0x568]
push str._s__s
push eax
call ebx
add esp, 0x10
mov eax, dword [0xc59bbc]
cmp dword [eax + 8], esi
mov eax, dword [0xc5a7ec]
cmp eax, esi
mov dword [ebp - 0x10], esi
je 0xc2ecca
mov dword [ebp - 0x10], eax
push str.DLVersion
lea eax, [ebp - 0x24]
push eax
mov ecx, 0xc5a80c
call fcn.00c2c3bc
cmp dword [ebp - 0x24], 2
je 0xc2ecf3
cmp dword [ebp - 0x24], 3
je 0xc2ecf3
mov dword [0xc5a7f8], 1
mov eax, dword [0xc59bbc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xa0]
jbe 0xc2ed0f
mov dword [0xc5a7f8], 1
jmp 0xc2ed30
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xa4]
jae 0xc2ed24
mov dword [0xc5a7f8], 1
cmp dword [0xc5a7f8], esi
je 0xc2eea6
xor eax, eax
call fcn.00c2d00a
mov eax, dword [0xc59bbc]
cmp dword [eax], esi
jne 0xc2ed4d
push 0xf
pop edi
call fcn.00c2cf1e
jmp 0xc2ee70
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x360]
push eax
push 0x64
lea eax, [ebp - 0x25c]
push eax
push 0xc4b60c
push str.InstallPath
push str.PATH
call edi
mov eax, dword [0xc59bbc]
cmp dword [eax + 0xb0], 0
je 0xc2ed8d
push 0xc5a2d0
call fcn.00c2c297
pop ecx
push 0xc5a2d0
call fcn.00c332d0
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call fcn.00c34a73
pop ecx
pop ecx
push esi
push eax
push esi
push 0xc5a2d0
xor esi, esi
push esi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x10]
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call esi
push dword [ebp - 0x10]
push 0
call esi
test eax, eax
je 0xc2edf8
push dword [ebp - 0x10]
push 0
call esi
cmp eax, 0x50
je 0xc2edf8
push dword [ebp - 0x10]
push 0
call esi
cmp eax, 0xb7
je 0xc2edf8
push 0
push 0xc5a2d0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x10]
call fcn.00c3286d
mov eax, dword [0xc59bbc]
push dword [eax + 0xa8]
lea eax, [ebp - 0x568]
push str.full__d.cab
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x360]
push eax
push 0x64
lea eax, [ebp - 0x25c]
push eax
push 0xc4b60c
push str.FullClientPath
push str.PATH
mov dword [0xc5a810], 3
call edi
mov esi, str.FullGame.cab
push esi
push 0xc5a818
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push 1
lea eax, [ebp - 0x25c]
push esi
push eax
call fcn.00c2dcd5
add esp, 0x10
test eax, eax
jne 0xc2ee77
xor esi, esi
jmp 0xc2f343
mov eax, dword [0xc59bbc]
and dword [0xc5ab4c], 0
and dword [0xc5ab50], 0
mov esi, dword [eax + 0xa8]
mov dword [ebp - 0x10], esi
call fcn.00c2cec9
mov eax, esi
call fcn.00c2d00a
mov eax, dword [0xc59bbc]
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov dword [0xc5ab4c], esi
mov dword [0xc5ab60], esi
mov dword [0xc5ab64], esi
cmp ecx, dword [eax + 0xa0]
jae 0xc2f07c
cmp dword [eax + 4], esi
je 0xc2f07c
push 4
push 0x1000
push 0x6400000
xor esi, esi
push esi
mov dword [0xc5a810], 2
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov eax, dword [0xc59bbc]
cmp dword [eax + 0x44], 0x10
jb 0xc2ef01
mov eax, dword [eax + 0x30]
jmp 0xc2ef04
add eax, 0x30
push eax
lea eax, [ebp - 0x1f8]
push str._s_patchinfo.dat
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x1f8]
push eax
mov ecx, edi
call fcn.00c2dbd7
test eax, eax
pop ecx
jg 0xc2ef6d
inc esi
cmp esi, 3
jl 0xc2ef16
xor esi, esi
lea eax, [ebp - 0x1f8]
push eax
mov ecx, edi
call fcn.00c2d18e
test eax, eax
pop ecx
jg 0xc2ef6d
inc esi
cmp esi, 3
jl 0xc2ef31
xor esi, esi
test esi, esi
jne 0xc2ef71
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x14
pop edi
call fcn.00c2cf1e
mov esi, eax
jmp 0xc2f343
mov esi, eax
jmp 0xc2ef4c
push 0xc
xor edx, edx
mov eax, esi
pop ecx
div ecx
test edx, edx
jne 0xc2ef50
shr esi, 2
xor ecx, ecx
test esi, esi
mov dword [ebp - 0x20], esi
mov dword [0xc5a810], 5
jle 0xc2efb3
mov eax, dword [edi + ecx*4]
cmp eax, dword [ebp - 0x10]
mov edx, dword [edi + ecx*4 + 4]
jbe 0xc2efac
inc dword [0xc5ab28]
add dword [0xc5ab30], edx
add ecx, 3
cmp ecx, esi
jl 0xc2ef94
and dword [ebp - 0x14], 0
test esi, esi
jle 0xc2f06c
mov eax, dword [ebp - 0x14]
shl eax, 2
mov esi, dword [eax + edi]
cmp esi, dword [ebp - 0x10]
mov eax, dword [eax + edi + 4]
mov dword [ebp - 0x1c], eax
jbe 0xc2f05c
mov eax, dword [0xc59bbc]
inc dword [0xc5ab24]
cmp dword [eax + 0x44], 0x10
jb 0xc2efee
mov eax, dword [eax + 0x30]
jmp 0xc2eff1
add eax, 0x30
push esi
push eax
lea eax, [ebp - 0x1f8]
push str._s_new__d.cab
push eax
call ebx
push esi
push str._d.cab
push 0xc5a818
call ebx
push 0
push 0
lea eax, [ebp - 0x1f8]
push str.patch_.cab
push eax
call fcn.00c2dcd5
add esp, 0x2c
test eax, eax
je 0xc2f0d9
mov eax, dword [ebp - 0x1c]
add dword [0xc5ab2c], eax
and dword [0xc5ab4c], 0
and dword [0xc5ab50], 0
mov eax, esi
mov dword [ebp - 0x10], esi
call fcn.00c2d00a
test eax, eax
jne 0xc2f0ed
call fcn.00c2cec9
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jl 0xc2efbf
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push str.Version.ini
push 0xc5a2d0
lea eax, [ebp - 0x1f8]
push 0xc4bac4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0xc59bbc]
cmp dword [eax + 8], esi
jne 0xc2f0b8
mov ecx, 0xc5a80c
call fcn.00c10af0
mov eax, dword [0xc565e8]
mov dword [ebp - 0x10], eax
mov eax, dword [0xc59bbc]
mov eax, dword [eax + 0xb8]
mov esi, dword [eax]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
jmp 0xc2f330
push 0x8000
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0xc2f343
push str.Version.ini
push 0xc5a2d0
lea eax, [ebp - 0x1f8]
push 0xc4bac4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xc5a80c
call fcn.00c10af0
jmp 0xc2ee70
cmp dword [esi + 0x40], 0x10
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x20], 0x18
jb 0xc2f139
mov eax, dword [esi + 0x2c]
jmp 0xc2f13c
lea eax, [esi + 0x2c]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x84]
push edx
push ecx
push eax
call fcn.00c2c0da
add esp, 0x10
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x40]
lea ecx, [esi + 0xc]
push eax
call fcn.00c01ae0
push eax
lea eax, [ebp - 0x5c]
push 0xc5a1c8
push eax
mov byte [ebp - 4], 2
call fcn.00c2bf10
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0xc2f182
mov eax, dword [eax + 4]
jmp 0xc2f185
add eax, 4
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
cmp edi, 0xffffffff
push 1
lea ecx, [ebp - 0x5c]
sete byte [ebp - 0x15]
call fcn.00c01f20
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00c01f20
cmp byte [ebp - 0x15], bl
jne 0xc2f363
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], eax
inc eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00c107a0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xc2f31a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x10]
call fcn.00c107a0
mov edx, eax
lea eax, [ebp - 0x3fc]
call fcn.00c2c3e8
push esi
push edx
mov esi, eax
call fcn.00c2cd1f
pop ecx
pop ecx
lea edi, [ebp - 0x6c]
call fcn.00c2cc9a
lea ecx, [ebp - 0x10]
call fcn.00c0fcd0
mov eax, dword [ebp - 0x10]
mov dword [eax - 8], ebx
mov byte [eax], bl
push 0x10
lea eax, [ebp - 0x84]
push eax
mov eax, edi
push eax
call fcn.00c33740
add esp, 0xc
test eax, eax
je 0xc2f31a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00c2e9d8
mov esi, eax
mov eax, dword [0xc59bbc]
add eax, 0x2c
push str._new_
push eax
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 4], 4
call fcn.00c1cb70
push esi
push eax
lea eax, [ebp - 0xf4]
push eax
mov byte [ebp - 4], 5
call fcn.00c02330
push str..cab
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 6
call fcn.00c1cb70
add esp, 0x2c
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 7
jb 0xc2f2be
mov eax, dword [eax + 4]
jmp 0xc2f2c1
add eax, 4
push ebx
push ebx
push str.patch.cab
push eax
call fcn.00c2dcd5
add esp, 0x10
mov ebx, eax
neg ebx
sbb bl, bl
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0xa0]
inc bl
call fcn.00c01f20
push esi
push edi
lea ecx, [ebp - 0xf4]
call fcn.00c01f20
push esi
push edi
lea ecx, [ebp - 0xd8]
call fcn.00c01f20
push esi
push edi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.00c01f20
test bl, bl
jne 0xc2f33b
lea ecx, [ebp - 0x1c]
call fcn.00c1ca10
mov eax, dword [0xc59bbc]
mov eax, dword [eax + 0xb8]
mov esi, dword [ebp - 0x1c]
cmp esi, eax
jne 0xc2f124
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
call fcn.00c0fe60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd90]
call fcn.00c45bb9
mov eax, esi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x5c]
lea ecx, [esi + 0xc]
push eax
call fcn.00c01ae0
push eax
lea eax, [ebp - 0x40]
push 0xc5a1c8
push eax
mov byte [ebp - 4], 3
call fcn.00c2bf10
add esp, 0xc
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.00c01f20
push esi
push 1
lea ecx, [ebp - 0x5c]
call fcn.00c01f20
push 0x16
pop edi
call fcn.00c2cf1e
jmp 0xc2f33b