Function at 0x472c80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488830
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e0], ecx
push 1
mov ecx, dword [ebp - 0x1e0]
call fcn.00472a40
push 0
mov eax, dword [ebp - 0x1e0]
push eax
push fcn.00472a40
lea ecx, [ebp - 0x164]
push ecx
call fcn.00430ac0
add esp, 4
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
push 0
lea ecx, [ebp - 0x8c]
call fcn.00430b10
mov dword [ebp - 4], 0
push 0
push 0xbb8
push 4
mov ecx, dword [ebp - 0x1e0]
call fcn.0046fc20
lea ecx, [ebp - 0x84]
call fcn.0040eac0
mov byte [ebp - 4], 1
push str.kagent.log
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040e7e0
mov dword [ebp - 0x1e4], eax
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040e400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x180]
call fcn.00403740
lea ecx, [ebp - 0x2c]
call fcn.0040e780
mov byte [ebp - 4], 5
push str.kbqsvc.log.cfg
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e7e0
mov dword [ebp - 0x1ec], eax
mov edx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040e400
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x19c]
call fcn.00403740
call fcn.0040dc80
mov ecx, eax
call fcn.00473ac0
mov ecx, 0x4ab400
call fcn.00475100
lea ecx, [ebp - 0x48]
call fcn.0040e470
push eax
push 0
push str.level
push str.SERVICE_LOG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jle 0x472ec0
cmp dword [ebp - 0x4c], 3
jge 0x472ec0
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00430a50
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x1b8]
push eax
call fcn.0040e680
mov ecx, eax
call fcn.00472140
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1b8]
call fcn.00403740
cmp dword [ebp - 0x4c], 2
jne 0x472ebe
mov word [ebp - 0x154], 0
push 0xc6
push 0
lea ecx, [ebp - 0x152]
push ecx
call fcn.00453b10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x490e10
lea edx, [ebp - 0x154]
push edx
call fcn.00450fe7
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x472ebe
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x472ef7
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x68]
call fcn.00430a50
mov byte [ebp - 4], 0xa
push 0
lea ecx, [ebp - 0x1d4]
push ecx
call fcn.0040e680
mov ecx, eax
call fcn.00472140
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1d4]
call fcn.00403740
push 0x50
call fcn.00450bb1
add esp, 4
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1dc], 0
je 0x472f27
mov ecx, dword [ebp - 0x1dc]
call fcn.004744f0
mov dword [ebp - 0x1f4], eax
jmp 0x472f31
mov dword [ebp - 0x1f4], 0
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1d8], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1d8]
push eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x8c
call fcn.00430b70
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x8c
call fcn.0041e8b0
mov dword [ebp - 0x1f8], eax
call fcn.0040e680
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1f8]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1e0]
add ecx, 0x8c
call fcn.0042b240
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.0040e420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0040e720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0040e420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.0040e720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.0040bdd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 8