Function at 0x401f70
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450690
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x40289e
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x18]
push edx
call eax
mov dword [esp + 0x70], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004049c0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0xbc], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40202f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0xc0]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x402041
xor ecx, ecx
jmp 0x402055
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402046
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
cmp dword [ebp + 0x14], 0
lea eax, [esi + 0xc4]
mov dword [esp + 0x28], eax
jne 0x402071
xor ecx, ecx
jmp 0x402086
mov ecx, dword [ebp + 0x14]
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402077
sub ecx, ebx
sar ecx, 1
mov edx, dword [ebp + 0x14]
push edx
mov ebx, ecx
call fcn.004053c0
mov edi, dword [ebp + 0x18]
lea eax, [esi + 0xc8]
mov dword [esp + 0x24], eax
test edi, edi
jne 0x4020a6
xor ecx, ecx
jmp 0x4020bf
mov ecx, edi
lea ebx, [ecx + 2]
jmp 0x4020b0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4020b0
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
mov edi, dword [ebp + 0x1c]
lea eax, [esi + 0xcc]
test edi, edi
jne 0x4020d8
xor ecx, ecx
jmp 0x4020ef
mov ecx, edi
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4020e0
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
mov edi, dword [ebp + 0x20]
lea eax, [esi + 0xd0]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x40210c
xor ecx, ecx
jmp 0x402120
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402111
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
mov edi, dword [ebp + 0x24]
lea eax, [esi + 0xd4]
mov dword [esp + 0x30], eax
test edi, edi
jne 0x40213d
xor ecx, ecx
jmp 0x402151
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402142
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
mov edi, dword [ebp + 0x28]
lea eax, [esi + 0xd8]
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x40216e
xor ecx, ecx
jmp 0x402182
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402173
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0xdc]
mov dword [esp + 0x34], eax
test edx, edx
jne 0x40219f
xor ecx, ecx
jmp 0x4021b3
mov ecx, edx
lea ebx, [ecx + 2]
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x4021a4
sub ecx, ebx
sar ecx, 1
push edx
mov ebx, ecx
call fcn.004053c0
mov ax, word [ebp + 0x10]
mov ecx, dword [esi + 0x98]
mov word [esi + 0xe0], ax
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [esp + 0x70], 1
mov eax, dword [eax]
push 0
mov edi, eax
lea esi, [esp + 0x20]
call fcn.004235b0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 4
push ecx
push eax
push str.UserName
push str.Share
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40222b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402253
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [esp + 0x70], 2
mov eax, dword [eax]
push 0
mov edi, eax
lea esi, [esp + 0x20]
call fcn.004235b0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 4
push ecx
push eax
push str.AgentName
push str.Share
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4022bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [esp + 0x70], 3
mov eax, dword [eax]
push 0
mov edi, eax
lea esi, [esp + 0x20]
call fcn.004235b0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 4
push ecx
push eax
push str.BarID
push str.Share
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40234a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [esp + 0x70], 4
mov eax, dword [eax]
push 0
mov edi, eax
lea esi, [esp + 0x20]
call fcn.004235b0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 4
push ecx
push eax
push 0x45b5a4
push str.Share
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4023d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402400
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [esp + 0x70], 5
mov eax, dword [eax]
push 0
mov edi, eax
lea esi, [esp + 0x20]
call fcn.004235b0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 4
push ecx
push eax
push str.LanIP
push str.Share
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402466
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40248e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
call edx
mov dword [esp + 0x70], 6
mov eax, dword [eax]
push 0
mov edi, eax
lea esi, [esp + 0x20]
call fcn.004235b0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 4
push ecx
push eax
push str.WanIP
push str.Share
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40251c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], 7
mov ecx, dword [ebx + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push eax
push 0x45b440
lea edi, [esp + 0x20]
call fcn.004018c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 8
push eax
push edx
push str.FileGroup
push str.Share
call esi
mov ecx, dword [ebx + 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
push eax
push 0x45b440
call fcn.004018c0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
push ecx
push str.WorkGroup
push str.Share
call esi
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
push eax
mov eax, dword [ebx + 0x98]
push ecx
push edx
push eax
lea edi, [ebx + 0x5c]
push edi
call fcn.00412400
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.0041b480
mov dword [ebx], eax
add esp, 8
lea eax, [esp + 0x48]
push eax
call fcn.00404d00
lea ecx, [esp + 0x48]
push ecx
push edi
mov byte [esp + 0x78], 8
call fcn.00412930
mov edx, dword [esp + 0x5c]
mov edi, dword [edx]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov edi, edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
test esi, esi
je 0x402622
cmp esi, dword [esp + 0x48]
je 0x402627
call fcn.00424b46
cmp edi, dword [esp + 0x44]
je 0x402778
test esi, esi
jne 0x402706
call fcn.00424b46
cmp edi, dword [esi + 0x14]
jne 0x402648
call fcn.00424b46
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + 8]
push esi
push ebx
call fcn.004028c0
mov dword [esp + 0x20], eax
test eax, eax
je 0x4026c0
push 8
call fcn.00424563
add esp, 4
push esi
mov edi, eax
push ebx
mov dword [edi], ebx
call fcn.00403900
push 0
push 0
push edi
push 0x401cf0
push 0
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4026c0
lea eax, [ebx + 0x164]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [ebx + 0x14c]
lea ebx, [esp + 0x28]
call fcn.00404df0
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 8]
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
push 0x45b440
lea edi, [esp + 0x24]
mov byte [esp + 0x78], 9
call fcn.004018c0
mov esi, dword [esp + 0x24]
add esp, 8
cmp dword [esp + 0x20], 0
je 0x40270d
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push eax
push 0x45b5ec
jmp 0x402719
mov esi, dword [esi]
jmp 0x40263e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push eax
push 0x45b5f8
push esi
push 0x45b5f0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x70], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402746
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x402774
call fcn.00424b46
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp esi, dword [eax + 0x14]
jne 0x402763
call fcn.00424b46
mov ecx, dword [esi]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov edi, ecx
jmp 0x402610
mov eax, dword [eax]
jmp 0x402755
push ebx
call fcn.004044d0
push ebx
call fcn.004045b0
mov edi, dword [ebx]
xor esi, esi
cmp edi, esi
je 0x4027f5
cmp dword [edi + 0x8c], esi
jne 0x4027f3
mov eax, dword [edi + 4]
cmp eax, esi
je 0x4027a5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], esi
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x4027b6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc], esi
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
test eax, eax
je 0x4027cd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0
call fcn.00418b40
push edi
mov dword [edi], 0
mov dword [edi + 0x88], 0
call fcn.0041b620
push edi
call fcn.00424042
add esp, 4
xor esi, esi
mov dword [ebx], esi
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x34]
mov edx, dword [edx]
push eax
movzx eax, word [ebx + 0xe0]
push ecx
push eax
push edx
call fcn.0041ba10
add esp, 0x10
push ebx
mov dword [ebx + 0x9c], eax
call fcn.00404690
push ebx
call fcn.00404760
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], esi
cmp eax, ecx
je 0x40285c
mov edi, dword [eax]
push eax
call fcn.00424042
mov ecx, dword [esp + 0x60]
add esp, 4
mov eax, edi
cmp edi, ecx
jne 0x402847
push ecx
call fcn.00424042
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
mov dword [esp + 0x60], esi
call fcn.00424042
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40289e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24