Function at 0x513910
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x234
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x244]
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x250]
push ebx
mov ebx, dword [esp + 0x24c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x24c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], esi
cmp dword [0x74e95c], esi
jne 0x513ac6
push 0x103
lea eax, [esp + 0x141]
push esi
push eax
mov byte [esp + 0x148], 0
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x49]
push esi
push ecx
mov byte [esp + 0x50], 0
call fcn.005dfd60
add esp, 0x18
push 0x74e958
push str.DoNotLogToEventLog
push 0x60d9ec
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x74e95c], 1
call fcn.004d5820
push 0x74e954
push str.LogAllEvents
push 0x60d9ec
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
lea edx, [esp + 0x13c]
push edx
call fcn.004ef9d0
cmp eax, 1
je 0x513a15
lea eax, [esp + 0x13c]
push eax
call fcn.004efb60
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x38], 0
je 0x513a52
lea eax, [esp + 0x38]
inc eax
cmp byte [eax], 0
jne 0x513a33
lea ecx, [esp + 0x38]
sub eax, ecx
je 0x513a52
cmp byte [esp + eax + 0x37], 0x5c
je 0x513a52
push 0x66da34
mov edx, ecx
push edx
call ebp
push str.vistaescanmon.lan
lea eax, [esp + 0x3c]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x38]
push ecx
push 0x104
push 0x74e850
push str.Description
push str.ColDescription
push str.eScanPro
call esi
lea edx, [esp + 0x38]
push edx
push 0x104
push 0x74e748
push str.Action
push str.ColAction
push str.eScanPro
call esi
lea eax, [esp + 0x38]
push eax
push 0x104
push 0x74e640
push 0x617f5c
push str.ColName
push str.eScanPro
call esi
xor esi, esi
cmp dword [0x74e958], esi
jne 0x513be7
cmp dword [0x74e954], esi
jne 0x513af4
mov eax, dword [esp + 0x250]
cmp eax, 1
je 0x513af4
cmp eax, 2
je 0x513af4
cmp eax, 3
jne 0x513be7
cmp ebx, esi
jne 0x513b08
cmp dword [esp + 0x28], esi
jne 0x513b08
cmp dword [esp + 0x24], esi
je 0x513be7
push 0x8000
call fcn.005e20e4
push 0x8000
mov esi, eax
call fcn.005e20e4
add esp, 8
mov edi, eax
test esi, esi
je 0x513bd4
test edi, edi
je 0x513bcb
mov byte [edi], 0
mov byte [esi], 0
test ebx, ebx
je 0x513b5d
push ebx
push 0x74e850
push str._s_:__s
push edi
call fcn.005dfb23
add esp, 0x10
push edi
push esi
call ebp
push 0x64dc1c
push esi
call ebp
mov eax, dword [esp + 0x28]
test eax, eax
je 0x513b85
push eax
push 0x74e640
push str._s_:__s
push edi
call fcn.005dfb23
add esp, 0x10
push edi
push esi
call ebp
push 0x64dc1c
push esi
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
je 0x513bad
push eax
push 0x74e748
push str._s_:__s
push edi
call fcn.005dfb23
add esp, 0x10
push edi
push esi
call ebp
push 0x64dc1c
push esi
call ebp
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x10]
push ecx
push edx
push esi
push eax
call fcn.0050a200
add esp, 0x10
push esi
call fcn.005e0865
add esp, 4
test edi, edi
je 0x513be1
push edi
call fcn.005e0865
add esp, 4
mov edi, dword [esp + 0x10]
xor esi, esi
call fcn.004ef4a0
test eax, eax
je 0x513c3c
test byte [0x74e63c], 1
jne 0x513c0a
or dword [0x74e63c], 1
call fcn.004dd740
mov dword [0x74e638], eax
cmp dword [0x74e638], esi
jne 0x513c3c
push esi
push esi
push 1
call fcn.0050ffd0
cmp eax, esi
je 0x513c3c
push str.SendLogLineProc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x513c43
push esi
push esi
push 2
call fcn.0050ffd0
xor eax, eax
jmp 0x513d98
cmp edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x513c72
push edi
call esi
inc eax
push eax
call fcn.005e20e4
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x513d94
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push eax
call ebp
jmp 0x513c78
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x34]
test edi, edi
je 0x513c9f
push edi
call esi
inc eax
push eax
call fcn.005e20e4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x513d3f
push edi
mov ecx, eax
push ecx
call ebp
test ebx, ebx
je 0x513cc2
push ebx
call esi
inc eax
push eax
call fcn.005e20e4
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x513d3f
push ebx
mov edx, eax
push edx
call ebp
mov edi, dword [esp + 0x24]
test edi, edi
je 0x513ce3
push edi
call esi
inc eax
push eax
call fcn.005e20e4
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x513d3f
push edi
push eax
call ebp
mov edi, dword [esp + 0x28]
test edi, edi
je 0x513d06
push edi
call esi
inc eax
push eax
call fcn.005e20e4
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x513d3f
push edi
mov ecx, eax
push ecx
call ebp
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x25c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x25c]
push ecx
push edx
push eax
call dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x513d50
push eax
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x513d61
push eax
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x513d72
push eax
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x513d83
push eax
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x513d94
push eax
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x234
ret 0x20