Function at 0x480150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488d2d
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
lea ecx, [ebp - 0x30]
call fcn.0040e780
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x480235
push str.logkan_sp3_managed_module.log
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e7e0
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 1
push 0
mov edx, dword [ebp - 0xec]
push edx
call fcn.0040e680
mov ecx, eax
call fcn.00472140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00403740
push 4
call fcn.00450bb1
add esp, 4
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x48020b
call fcn.0040e680
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0040e9f0
mov dword [ebp - 0xf0], eax
jmp 0x480215
mov dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1c4
call fcn.004101c0
jmp 0x480284
push 4
call fcn.00450bb1
add esp, 4
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x48025c
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.0040e9f0
mov dword [ebp - 0xf4], eax
jmp 0x480266
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1c4
call fcn.004101c0
cmp dword [ebp + 8], 0
je 0x480290
cmp dword [ebp + 0xc], 0
jne 0x4802da
push 0x7c
push 0x4946bc
push str._src:_s__line:_d_param_error_fail_
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1c4
call fcn.0041e8b0
push eax
call fcn.004071c0
add esp, 0x10
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e720
mov eax, dword [ebp - 0x84]
jmp 0x4806c3
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x1cc], eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x1d0], edx
push str.update.cfg
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e7e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00403760
push eax
push 0
push 0x494750
push 0x494760
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x48035c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x50]
call fcn.00403760
push eax
push 0
push str.enable
push str.debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x34], eax
jmp 0x48032b
cmp dword [ebp - 0xe4], 0
je 0x480376
mov ecx, dword [ebp - 0xe4]
add ecx, 4
mov dword [ebp - 0xf8], ecx
jmp 0x480380
mov dword [ebp - 0xf8], 0
mov edx, dword [ebp - 0xf8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x1d0]
push edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x1cc]
push ecx
mov ecx, dword [ebp - 0xe4]
add ecx, 0x14
call fcn.0040e8d0
test eax, eax
je 0x480410
push 0x90
push 0x494788
push str._src:_s__line:_d_open_inst_handler_fail_
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1c4
call fcn.0041e8b0
push eax
call fcn.004071c0
add esp, 0x10
mov dword [ebp - 0x88], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00403740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e720
mov eax, dword [ebp - 0x88]
jmp 0x4806c3
mov edx, dword [ebp - 0xe4]
add edx, 0x184
push edx
mov ecx, dword [ebp - 0xe4]
add ecx, 0x14
call fcn.0047ae70
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1e8
call fcn.00406fa0
cmp eax, 0xffffffff
jne 0x4804f6
push 0xc
call fcn.00450bb1
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x90], 0
je 0x4804c4
mov dword [ebp - 0x98], 0x4800a0
mov dword [ebp - 0x94], 0
push 0
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x98]
push edx
lea eax, [ebp - 0xac]
push eax
call fcn.00410200
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x90]
call fcn.00410250
mov dword [ebp - 0xfc], eax
jmp 0x4804ce
mov dword [ebp - 0xfc], 0
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1e8
call fcn.0040c530
lea ecx, [ebp - 0x50]
call fcn.00403760
push eax
push 0xe10
push str.infoc
push 0x494820
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.00403760
push eax
push 0xe10
push str.update_fraq
push str.kagent
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xb4], 0x47f280
mov dword [ebp - 0xb0], 0
push 0
mov al, byte [0x4ab3cd]
push eax
mov cl, byte [0x4ab3cc]
push ecx
mov dl, byte [0x4ab3cb]
push edx
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.004102e0
add esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.00410330
add esp, 0x10
push eax
push 0xe10
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x1cc]
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x1cc]
mov edx, dword [edx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xe4]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0xcc], 0x47f220
mov dword [ebp - 0xc8], 0
push 1
mov dl, byte [0x4ab3cd]
push edx
mov al, byte [0x4ab3cc]
push eax
mov cl, byte [0x4ab3cb]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.004102e0
add esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.00410330
add esp, 0x10
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x1cc]
mov ecx, dword [ebp - 0xe4]
mov ecx, dword [ecx + 0x1cc]
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xe4]
mov dword [ecx + 0x10], eax
push 0xab
push 0x494858
push str._src:_s__line:_d_managed_module_start_success_
mov ecx, dword [ebp - 0xe4]
add ecx, 0x1c4
call fcn.0041e8b0
push eax
call fcn.004071c0
add esp, 0x10
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00403740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040e720
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 0xc