Function at 0x41d170
Capabilities:
Get hostname
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x539c31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
mov ebx, ecx
push edi
push 0xa
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], ebx
call fcn.00510deb
mov dword [esp + 0x5c], 0x559f90
mov eax, dword [0x5ab980]
xor esi, esi
mov dword [esp + 0x19c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov ecx, ebx
mov byte [esp + 0x19c], 7
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
call fcn.0041d0b0
mov ecx, dword [esp + 0x1a4]
lea eax, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.00423940
cmp eax, esi
jge 0x41d29b
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 6
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 5
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 4
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 3
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 2
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 0
call fcn.005128e4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00510e5f
mov eax, 0xfffffffe
jmp 0x41dd18
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x54], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x41d2bd
mov byte [esp + 0x78], al
jmp 0x41d2cb
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
call fcn.00512a6d
mov eax, dword [esp + 0x60]
cmp eax, esi
mov dword [esp + 0x48], eax
je 0x41da2e
push ebp
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
add eax, 8
push eax
mov dword [esp + 0x50], edx
call fcn.00512a1d
lea ecx, [esp + 0x1c]
call fcn.0050e7b8
lea ecx, [esp + 0x1c]
call fcn.0050e8af
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x41da15
mov al, byte [ecx]
cmp al, 0x3b
je 0x41da15
cmp al, 0x5b
jne 0x41d365
mov esi, 0x598ed0
mov eax, esi
test eax, eax
je 0x41da15
lea ebp, [ecx + 1]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push ebp
call fcn.004f9d20
add esp, 0xc
test eax, eax
je 0x41d359
add esi, 0x24
jne 0x41d334
jmp 0x41da15
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
jmp 0x41da15
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41da15
mov eax, dword [0x5ab980]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x1a4], 9
call fcn.00512a1d
lea eax, [esp + 0x10]
push 0x5990a8
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.00422d20
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a4], 0xa
call fcn.00512a1d
lea ecx, [esp + 0x58]
mov byte [esp + 0x1a0], 9
call fcn.005128e4
lea ecx, [esp + 0x14]
call fcn.0050e7b8
lea ecx, [esp + 0x10]
call fcn.0050e8af
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 8]
test eax, eax
je case.0x41d416.16
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je case.0x41d416.16
mov edx, dword [esp + 0x44]
lea eax, [edx - 0xa]
cmp eax, 0x32
ja case.0x41d416.16
xor edx, edx
mov dl, byte [eax + 0x41dd50]
jmp dword [edx*4 + 0x41dd34]
lea eax, [esp + 0x7c]
push eax
push ecx
call fcn.004f9670
xor esi, esi
add esp, 8
cmp eax, esi
jne 0x41d4c2
mov ecx, dword [esp + 0x14]
push 6
push str.source
push ecx
call fcn.004f9d20
add esp, 0xc
test eax, eax
jne 0x41d47a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
push edx
call fcn.00512a1d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
call fcn.00512a1d
mov eax, 1
mov dword [ebx + 4], eax
mov dword [esp + 0x30], eax
jmp case.0x41d416.16
mov ecx, dword [esp + 0x14]
push 6
push str.target
push ecx
call fcn.004f9d20
add esp, 0xc
test eax, eax
jne case.0x41d416.16
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call fcn.00512a1d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
call fcn.00512a1d
mov dword [ebx + 4], esi
mov dword [esp + 0x30], 1
jmp case.0x41d416.16
mov ecx, dword [esp + 0x10]
push str.Auto
push ecx
call fcn.004f9670
add esp, 8
cmp eax, esi
jne case.0x41d416.16
mov edx, dword [0x5ab980]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x14]
push 6
push str.source
push eax
mov byte [esp + 0x1ac], 0xb
call fcn.004f9d20
add esp, 0xc
test eax, eax
jne 0x41d592
push 0x5b0738
push str.source
lea ecx, [esp + 0x5c]
push str.Automation
push ecx
mov ecx, 0x5b1110
call fcn.0052c46e
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a4], 0xc
call fcn.00512a1d
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a0], 0xb
call fcn.005128e4
mov edx, dword [esp + 0x28]
push str.Auto
push edx
call fcn.004f9670
add esp, 8
cmp eax, esi
jne 0x41d628
push str.source1
lea ecx, [esp + 0x24]
call fcn.00512a6d
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call fcn.00512a1d
mov eax, 1
mov dword [ebx + 4], eax
mov dword [esp + 0x30], eax
jmp 0x41d628
mov ecx, dword [esp + 0x14]
push 6
push str.target
push ecx
call fcn.004f9d20
add esp, 0xc
test eax, eax
jne 0x41d628
push 0x5b0738
push str.Target
lea edx, [esp + 0x40]
push str.Automation
push edx
mov ecx, 0x5b1110
call fcn.0052c46e
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a4], 0xd
call fcn.00512a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a0], 0xb
call fcn.005128e4
mov eax, dword [esp + 0x28]
push str.Auto
push eax
call fcn.004f9670
add esp, 8
cmp eax, esi
jne 0x41d628
push str.target1
lea ecx, [esp + 0x1c]
call fcn.00512a6d
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.00512a1d
mov dword [ebx + 4], esi
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 9
call fcn.005128e4
jmp case.0x41d416.16
mov esi, str.exclude
mov ecx, edi
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x41d669
test al, al
je 0x41d665
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x41d669
add ecx, 2
add esi, 2
test dl, dl
jne 0x41d645
xor eax, eax
jmp 0x41d66e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d67f
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0x30]
jmp 0x41d9ee
mov esi, str.include
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41d6aa
test cl, cl
je 0x41d6a6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41d6aa
add eax, 2
add esi, 2
test cl, cl
jne 0x41d686
xor eax, eax
jmp 0x41d6af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.0x41d416.16
lea eax, [esp + 0x10]
lea ecx, [ebx + 0x14]
push eax
jmp 0x41d9ee
push str.Apps
push edi
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d6fb
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004f9b83
add esp, 4
mov ecx, 0x5bc868
mov dword [ebx + 0x4c], eax
push eax
push str.Apps
call fcn.0046b110
jmp case.0x41d416.16
mov edx, dword [esp + 0x14]
push str.Apps.MinPct
push edx
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d736
mov eax, dword [esp + 0x10]
push eax
call fcn.004f9b83
add esp, 4
mov ecx, 0x5bc868
mov dword [ebx + 0x50], eax
push eax
push str.Apps.MinPct
call fcn.0046b110
jmp case.0x41d416.16
mov edi, dword [esp + 0x14]
mov esi, str.exclude
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x41d765
test dl, dl
je 0x41d761
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x41d765
add ecx, 2
add esi, 2
test dl, dl
jne 0x41d741
xor ecx, ecx
jmp 0x41d76a
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x41d77b
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0x70]
jmp 0x41d9ee
mov esi, str.include
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41d7a6
test cl, cl
je 0x41d7a2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41d7a6
add eax, 2
add esi, 2
test cl, cl
jne 0x41d782
xor eax, eax
jmp 0x41d7ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.0x41d416.16
lea eax, [esp + 0x10]
lea ecx, [ebx + 0x54]
push eax
jmp 0x41d9ee
push str.Settings.UserProfile
push edi
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d7fa
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004f9b83
add esp, 4
mov ecx, 0x5bc868
mov dword [ebx + 0xa8], eax
push eax
push str.Settings.UserProfile
call fcn.0046b110
jmp case.0x41d416.16
mov eax, dword [esp + 0x14]
mov esi, str.include
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41d827
test cl, cl
je 0x41d823
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41d827
add eax, 2
add esi, 2
test cl, cl
jne 0x41d803
xor eax, eax
jmp 0x41d82c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.0x41d416.16
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push 0x598d3c
push ecx
call fcn.00512bed
push eax
lea ecx, [ebx + 0xac]
mov byte [esp + 0x1a4], 0xe
call fcn.00510fd7
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], 9
call fcn.005128e4
jmp case.0x41d416.16
push str.Settings
push edi
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d8ac
mov edx, dword [esp + 0x10]
push edx
call fcn.004f9b83
add esp, 4
mov ecx, 0x5bc868
mov dword [ebx + 0xc8], eax
push eax
push str.Settings
call fcn.0046b110
jmp case.0x41d416.16
mov edi, dword [esp + 0x14]
mov esi, str.include
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x41d8db
test dl, dl
je 0x41d8d7
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x41d8db
add ecx, 2
add esi, 2
test dl, dl
jne 0x41d8b7
xor ecx, ecx
jmp 0x41d8e0
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x41d8f4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0xcc]
jmp 0x41d9ee
mov esi, str.exclude
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41d91f
test cl, cl
je 0x41d91b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41d91f
add eax, 2
add esi, 2
test cl, cl
jne 0x41d8fb
xor eax, eax
jmp 0x41d924
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.0x41d416.16
lea eax, [esp + 0x10]
lea ecx, [ebx + 0xe8]
push eax
jmp 0x41d9ee
push str.Files.MyDocs
push edi
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d971
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004f9b83
add esp, 4
mov ecx, 0x5bc868
mov dword [ebx + 0x104], eax
push eax
push str.Files.MyDocs.CU
call fcn.0046b110
mov edx, dword [esp + 0x14]
push str.Files
push edx
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d9aa
mov eax, dword [esp + 0x10]
push eax
call fcn.004f9b83
add esp, 4
mov ecx, 0x5bc868
mov dword [ebx + 0x108], eax
push eax
push str.Files
call fcn.0046b110
mov ecx, dword [esp + 0x14]
push str.include
push ecx
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x41d9cd
lea edx, [esp + 0x10]
lea ecx, [ebx + 0x10c]
push edx
jmp 0x41d9ee
mov eax, dword [esp + 0x14]
push str.exclude
push eax
call fcn.004f9670
add esp, 8
test eax, eax
jne case.0x41d416.16
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0x128]
call fcn.00510fd7
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a0], 8
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 7
call fcn.005128e4
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x41d2dc
mov eax, dword [esp + 0x30]
pop ebp
test eax, eax
jne 0x41dac3
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 6
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 5
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 4
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 3
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 2
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 0
call fcn.005128e4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00510e5f
mov eax, 0xfffffffb
jmp 0x41dd18
mov eax, dword [ebx + 4]
push 6
test eax, eax
je 0x41db8a
lea edx, [esp + 0x38]
lea ecx, [esp + 0x20]
push edx
call fcn.0050e172
push eax
lea eax, [esp + 0x3c]
mov bl, 0xf
push str.TARGET
push eax
mov byte [esp + 0x1a8], bl
call fcn.00512bed
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0x10
call fcn.00512a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], bl
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], 7
call fcn.005128e4
mov ecx, dword [esp + 0x1a4]
lea edx, [esp + 0x8c]
mov eax, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
push 0x105
push edx
push 0x5b0738
push eax
push str.computers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x41dc70
cmp byte [esp + 0x8c], 0x5c
je 0x41db76
cmp byte [esp + 0x8d], 0x3a
jne 0x41dc70
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x8c]
push ecx
lea esi, [edi + 0xc]
jmp 0x41dc4d
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
push edx
call fcn.0050e172
push eax
lea eax, [esp + 0x3c]
mov bl, 0x11
push str.SOURCE
push eax
mov byte [esp + 0x1a8], bl
call fcn.00512bed
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 0x12
call fcn.00512a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], bl
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], 7
call fcn.005128e4
mov ecx, dword [esp + 0x1a4]
lea edx, [esp + 0x8c]
mov eax, dword [ecx]
push eax
mov eax, dword [esp + 0x20]
push 0x105
push edx
push 0x5b0738
push eax
push str.Computers
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x41dc70
cmp byte [esp + 0x8c], 0x5c
je 0x41dc3e
cmp byte [esp + 0x8d], 0x3a
je 0x41dc3e
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [edx + 0x10]
call fcn.00512a6d
jmp 0x41dc70
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x8c]
push eax
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.00512a6d
push esi
call fcn.0041f9c0
add esp, 4
mov ecx, esi
push str.000.dmv
call fcn.00512cc0
mov dword [edi + 8], 1
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 6
mov dword [eax + 0x16c], 2
mov dword [eax + 0x1b0], 1
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 5
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 4
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 3
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 2
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 0
call fcn.005128e4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00510e5f
mov eax, 1
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x194
ret 4