Function at 0x1000208f
Capabilities:
Connect socket
Delete file
Download and write a file
Initialize winsock library
Receive and write data from server to client
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b0c
call fcn.10014f70
push ebx
push esi
mov edx, 0x17b
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x137b]
mov byte [ebp - 0x137c], bl
mov byte [ebp - 0x98c], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x98b]
push 0x3f
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0xd8b]
mov byte [ebp - 0xd8c], bl
mov byte [ebp - 0xc8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xc8b]
mov byte [ebp - 0xa8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa8b]
mov byte [ebp - 0xb8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xb8b]
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157b]
mov byte [ebp - 0x157c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x193]
mov byte [ebp - 0x194], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x43]
mov byte [ebp - 0x44], bl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x73]
mov byte [ebp - 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x94], bl
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x93]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x297]
mov byte [ebp - 0x298], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x39b]
mov byte [ebp - 0x39c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x197b]
mov byte [ebp - 0x197c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x10], 0x7530
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x197c]
push 0x10093664
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x197c]
push 0x1009365c
push eax
call esi
add esp, 0x20
test eax, eax
jne 0x10002223
lea eax, [ebp - 0x197c]
push 0x10093654
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x10002cc7
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [ebp - 0x197c]
push 0x2f
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x1000224c
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x298]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x1976]
push 0x40
push eax
call esi
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x100022dc
lea eax, [ebp - 0x1976]
mov byte [edi], bl
push eax
lea eax, [ebp - 0xc8c]
push eax
call sub.MSVCRT.dll_strcpy
inc edi
lea eax, [ebp - 0x194]
push edi
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xc8c]
push 0x3a
push eax
call esi
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x100022c4
lea eax, [ebp - 0xc8c]
mov byte [edi], bl
push eax
lea eax, [ebp - 0xa8c]
push eax
call sub.MSVCRT.dll_strcpy
inc edi
push edi
lea eax, [ebp - 0xb8c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
jmp 0x10002314
lea eax, [ebp - 0xa8c]
push 0x10093648
push eax
call sub.MSVCRT.dll_strcpy
push 0x10093640
jmp 0x100022b3
lea eax, [ebp - 0x1976]
push eax
lea eax, [ebp - 0x194]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xa8c]
push 0x10093648
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xb8c]
push 0x10093640
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x18
lea eax, [ebp - 0x194]
push 0x2f2f
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x1000233a
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0xd8c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x194]
push 0x3a
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
je 0x10002351
mov byte [eax], bl
inc eax
push eax
jmp 0x10002356
push 0x1009363c
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x298]
pop ecx
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10002cbe
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x10002cbe
cmp dword [ebp + 8], ebx
jne 0x100023c5
cmp dword [ebp + 0x10], ebx
je 0x100023b0
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x100023c5
push dword [ebp + 0x10]
jmp 0x100023b7
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x39c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x1b0c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100023e9
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x1bc
jmp 0x10002cc7
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
lea eax, [ebp - 0x194]
push eax
call esi
cmp eax, 0xffffffff
je 0x10002429
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea eax, [ebp - 0x44]
push eax
mov word [ebp - 0x24], 2
call edi
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x194]
push eax
call esi
mov dword [ebp - 0x20], eax
jmp 0x1000247e
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
jne 0x1000244a
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x1f3
jmp 0x10002cb4
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea eax, [ebp - 0x44]
push eax
mov word [ebp - 0x24], 2
call edi
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
movsx eax, word [esi + 0xa]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 0x10], esi
jne 0x100024ad
mov eax, dword [ebp + 0x1c]
push 0x10093628
mov dword [eax], 0x190
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
jmp 0x10002cb4
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x24]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x100024ea
mov eax, dword [ebp + 0x1c]
push esi
mov dword [eax], 0x191
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10002cb4
mov esi, 0x5ee
lea eax, [ebp - 0x98c]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x137c]
push 0x1009361c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10002577
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x1bd
jmp 0x1000274d
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push 3
lea eax, [ebp - 0x98c]
push 0x10093618
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1000266f
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xb8c]
push eax
lea eax, [ebp - 0x137c]
push 0x1009360c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002569
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push 3
lea eax, [ebp - 0x98c]
push 0x10093608
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1000266f
lea eax, [ebp - 0x98c]
push eax
call edi
pop ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x1000274d
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xd8c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
test eax, eax
lea eax, [ebp - 0xd8c]
jne 0x1000269b
mov eax, 0x10093604
push eax
lea eax, [ebp - 0x137c]
push 0x100935f8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002569
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push 3
lea eax, [ebp - 0x98c]
push 0x10093608
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x10002755
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10002774
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x1be
push dword [ebp + 0x10]
jmp 0x100024df
push 3
lea eax, [ebp - 0x98c]
push 0x100935f4
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1000265b
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x137c]
push 0x100935e8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002569
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x137c]
push 0x100935dc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002569
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push 3
lea eax, [ebp - 0x98c]
push 0x100935d8
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1000265b
lea eax, [ebp - 0x989]
push eax
call edi
cmp dword [ebp + 8], 1
pop ecx
mov dword [ebp + 0xc], eax
jne 0x100028b1
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0xc], eax
jbe 0x100028d0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x1bf
jmp 0x1000274d
cmp dword [ebp + 8], 2
jne 0x100028d0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [eax], ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
pop ebx
jmp 0x10002cb4
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x137c]
push 0x100935d0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002569
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10002744
push 3
lea eax, [ebp - 0x98c]
push 0x100935cc
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1000265b
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
jle 0x100029d6
lea ecx, [ebp - 0x157c]
cmp dword [ebp - 0xc], ebx
jne 0x10002995
cmp byte [ebp + eax - 0x98c], 0x28
jne 0x100029ca
mov dword [ebp - 0xc], 1
jmp 0x100029ca
mov al, byte [ebp + eax - 0x98c]
cmp al, 0x29
jne 0x100029a5
mov dword [ebp - 0xc], ebx
jmp 0x100029ca
cmp al, 0x2c
jne 0x100029c7
cmp dword [ebp - 4], 3
jge 0x100029b8
mov byte [ecx], 0x2e
inc ecx
inc dword [ebp - 4]
jmp 0x100029ca
cmp al, 0x2c
jne 0x100029c7
cmp dword [ebp - 4], 3
jl 0x100029c7
mov byte [ecx], 0x20
jmp 0x100029c9
mov byte [ecx], al
inc ecx
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jl 0x1000297d
lea eax, [ebp - 0x157c]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x10002a80
mov byte [eax], bl
lea eax, [ebp - 0x157c]
push eax
lea eax, [ebp - 0x194]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 8]
inc eax
push eax
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10002a80
mov byte [eax], bl
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 8]
inc eax
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x74]
push eax
call edi
mov edx, eax
lea eax, [ebp - 0x94]
shl edx, 8
push eax
mov dword [ebp - 8], edx
call edi
mov ecx, dword [ebp - 8]
add ecx, eax
lea eax, [ebp - 0x44]
push ecx
push 0x100935c8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x24
lea eax, [ebp - 0x44]
mov word [ebp - 0x54], 2
push eax
call edi
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push ebx
push 1
push 2
mov dword [ebp - 0x50], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10002493
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1006
push 0xffff
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x54]
push 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10002af9
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x191
jmp 0x1000274d
push esi
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x137c]
push 0x100935bc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x137c]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x137c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002569
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
push 3
lea eax, [ebp - 0x98c]
push 0x100935b8
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x10002bb1
push 3
lea eax, [ebp - 0x98c]
push 0x100935b4
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1000265b
cmp dword [ebp + 8], ebx
jne 0x10002c74
lea eax, [ebp - 0x39c]
push 0x100935b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 0x1c], eax
jne 0x10002be8
push dword [ebp - 4]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [ebp + 0x10]
jmp 0x10002cb2
cmp dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jbe 0x10002c4f
push esi
lea eax, [ebp - 0x98c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98c]
push ebx
push 0x400
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002c5b
cmp edi, ebx
je 0x10002c5b
cmp edi, 0x400
jg 0x10002c5b
push dword [ebp + 0x1c]
lea eax, [ebp - 0x98c]
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10002c5b
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jb 0x10002bf0
push dword [ebp + 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x10002ca1
push dword [ebp + 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10002ca4
cmp dword [ebp + 8], 1
jne 0x10002ca1
xor esi, esi
cmp dword [ebp + 0xc], ebx
jbe 0x10002ca1
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002744
add esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x10002c81
push 1
pop ebx
push dword [ebp + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [ebp - 4]
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
jmp 0x10002cc9
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x1f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret