Function at 0x401b10
Capabilities:
Get common file path
Get local ipv4 addresses
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x409a9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
push esi
lea eax, [esp + 0x40]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str.Config.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x250]
push 0x104
push ecx
push 0
push str.srv_ip
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x24c]
push edx
call ebp
mov dword [0x40ea1c], eax
lea eax, [esp + 0x44]
push eax
push 0
push str.srv_port
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x18]
mov word [0x40ea20], ax
push ecx
push 0
mov dword [esp + 0x20], 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov edx, dword [esp + 0x18]
push edx
call fcn.00403c42
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], esi
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test esi, esi
je 0x401d1a
mov cl, byte [esp + 0x1f]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
lea ebx, [esi + 0x10c]
call fcn.00402690
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x3c]
call fcn.00402d50
or ebx, 0xffffffff
mov edi, 0x40c080
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x358], 0
push ecx
push eax
push 0x40c080
lea ecx, [esp + 0x40]
call fcn.00402600
cmp eax, ebx
jne 0x401cfc
mov edi, 0x40c07c
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x40c07c
lea ecx, [esp + 0x40]
call fcn.00402600
cmp eax, ebx
jne 0x401cfc
push 0x16
call fcn.00403c42
mov edi, eax
add esp, 4
test edi, edi
je 0x401d00
xor edx, edx
lea ecx, [esi + 0x1d8]
mov dword [eax], edx
push ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax + 0x14], dx
call ebp
lea edx, [esi + 0x1b0]
mov dword [edi + 0xc], eax
push edx
call ebp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, 0x40ea28
mov dword [esp + 0x38], edi
call fcn.004026f0
mov esi, dword [esi]
test esi, esi
je 0x401d08
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x35c], ebx
call fcn.00402690
jmp 0x401bfc
mov esi, dword [esi]
jmp 0x401ce5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x35c], ebx
call fcn.00402690
mov edx, dword [esp + 0x14]
push edx
call fcn.00403bd9
mov ecx, dword [0x40ea2c]
add esp, 4
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x401d79
mov esi, 6
mov eax, dword [eax + 0x10]
or edx, 0xffffffff
mov dword [esp + 0x14], esi
lea ecx, [eax + 0x10]
mov edi, ecx
mov dword [edi], edx
mov word [edi + 4], dx
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push edx
push ecx
push 0
push eax
call sub.iphlpapi.dll_SendARP
lea ecx, [esp + 0x10]
call fcn.00402d00
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40ea2c]
cmp eax, ecx
jne 0x401d3c
lea ecx, [esp + 0x148]
lea edx, [esp + 0x20]
push ecx
push edx
call sub.wpcap.dll_pcap_findalldevs
add esp, 8
cmp eax, 0xffffffff
jne 0x401d9b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x401e88
mov eax, dword [edi + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cl, byte [eax + 7]
mov dl, byte [eax + 6]
push ecx
lea ebx, [eax + 4]
push edx
xor ecx, ecx
mov cl, byte [eax + 5]
mov eax, dword [edi + 4]
xor edx, edx
push ecx
mov dl, byte [ebx]
lea ecx, [esp + 0x154]
push edx
push eax
push str._s___d._d._d._d
push ecx
call fcn.00403b87
add esp, 0x1c
lea edx, [esp + 0x14]
mov ecx, 0x40ea28
push ebx
push edx
call fcn.00402df0
mov eax, dword [0x40ea2c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x401e0c
mov edx, dword [ebx]
mov esi, dword [ecx + 0xc]
cmp edx, esi
jb 0x401e0c
lea ecx, [esp + 0x14]
jmp 0x401e14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
mov ebp, dword [ecx]
cmp ebp, eax
je 0x401e7a
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [esi + 8]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 4]
and ecx, eax
mov dword [esi + 8], ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x148]
push ecx
push 0x3e8
push 1
push 0x10000
push edx
call sub.wpcap.dll_pcap_open_live
add esp, 0x14
test eax, eax
jne 0x401e78
lea eax, [esp + 0x2c]
push ebp
push eax
mov ecx, 0x40ea28
call fcn.00402930
push esi
call fcn.00403bd9
add esp, 4
jmp 0x401e7a
mov dword [esi], eax
mov edi, dword [edi]
test edi, edi
jne 0x401da7
mov edi, dword [esp + 0x20]
push edi
call sub.wpcap.dll_pcap_freealldevs
mov esi, dword [0x40ea2c]
add esp, 4
mov eax, dword [esi]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x401f11
mov edx, dword [0x40ea50]
mov ecx, dword [eax + 0x10]
cmp dword [ecx], 0
jne 0x401ed3
lea edx, [esp + 0x24]
push eax
push edx
mov ecx, 0x40ea28
call fcn.00402930
mov esi, dword [0x40ea2c]
mov edx, dword [0x40ea50]
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x401f0d
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x401eec
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
je 0x401f09
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x401ee2
jmp 0x401f09
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x401f02
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x401ef4
cmp dword [eax + 8], ecx
je 0x401f0d
mov eax, ecx
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x401ea7
mov eax, dword [0x40ea34]
test eax, eax
jne 0x401f22
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34c
ret