Function at 0x1001fa2
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x19c], ebx
mov byte [ebp - 0x1a8], bl
mov byte [ebp - 0x1ac], 1
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1a4], ebx
call fcn.01003d05
push ebx
push ebx
xor edi, edi
inc edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.01002b9c
mov eax, dword [esi]
mov dword [0x1005cb4], eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x1002039
push eax
push dword [0x1005cb4]
push 0x2719
push 2
call fcn.01002a8e
add esp, 0x10
push edi
call dword [sym.imp.msvcrt.dll_exit]
cmp dword [ebp + 8], 2
jge 0x1002044
call fcn.010015ba
cmp dword [ebp + 8], edi
mov eax, edi
mov dword [ebp - 0x1b0], edi
jle 0x1002128
mov eax, dword [esi + eax*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x100209a
cmp cl, 0x2f
je 0x100209a
cmp dword [ebp - 0x198], ebx
jne 0x1002077
mov dword [ebp - 0x198], eax
jmp 0x1002112
cmp dword [ebp - 0x1a0], ebx
jne 0x100208a
mov dword [ebp - 0x1a0], eax
jmp 0x1002112
cmp dword [ebp - 0x1a4], ebx
jne 0x100203f
mov dword [ebp - 0x1a4], eax
jmp 0x1002112
lea edi, [eax + 1]
jmp 0x100210c
movsx eax, al
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x41
je 0x1002101
cmp eax, 0x44
je 0x10020f5
cmp eax, 0x47
je 0x1002101
cmp eax, 0x4e
je 0x10020e0
cmp eax, 0x53
je 0x10020d4
cmp eax, 0x56
jne 0x100203f
mov byte [ebp - 0x1ac], bl
jmp 0x10020e7
mov dword [ebp - 0x19c], 2
jmp 0x100210b
mov byte [ebp - 0x1a8], 1
cmp dword [ebp - 0x19c], ebx
je 0x100203f
jmp 0x100210b
mov dword [ebp - 0x19c], 3
jmp 0x100210b
mov dword [ebp - 0x19c], 1
inc edi
mov al, byte [edi]
cmp al, bl
jne 0x100209f
mov eax, dword [ebp - 0x1b0]
inc eax
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x1b0], eax
jl 0x1002055
call fcn.01002b79
test al, al
jne 0x1002146
push 0x2724
push 2
call fcn.01002a8e
pop ecx
pop ecx
push 1
jmp 0x1002033
call fcn.01003586
cmp eax, ebx
je 0x100215e
push eax
push 0x271e
push 2
call fcn.01002bfa
jmp 0x100213f
mov eax, dword [ebp - 0x19c]
dec eax
je 0x10021f4
dec eax
je 0x10021a9
dec eax
jne 0x1002236
call fcn.01002a2d
test al, al
jne 0x1002185
mov eax, 0x2e4
jmp 0x100219e
push dword [ebp - 0x1a0]
push dword [ebp - 0x198]
call fcn.01001707
cmp eax, ebx
je 0x1002236
push eax
push 0x2721
jmp 0x100222f
cmp dword [ebp - 0x198], ebx
je 0x100203f
cmp dword [ebp - 0x1a0], ebx
je 0x100203f
call fcn.01002a2d
test al, al
jne 0x10021d1
mov eax, 0x2e4
jmp 0x10021ec
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a0]
push dword [ebp - 0x198]
call fcn.010018ac
cmp eax, ebx
je 0x1002236
push eax
push 0x2720
jmp 0x100222f
cmp byte [ebp - 0x1a8], bl
je 0x1002208
cmp dword [ebp - 0x198], ebx
je 0x100203f
push dword [ebp - 0x1ac]
push dword [ebp - 0x1a8]
push dword [ebp - 0x1a0]
push dword [ebp - 0x198]
call fcn.01001dcf
cmp eax, ebx
je 0x1002236
push eax
push 0x271f
push 2
call fcn.01002bfa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.010024ef
leave
ret