Function at 0x1003397
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push dword [0x1006b14]
push 0x400028a1
push 2
call fcn.01001e7b
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x100609c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x1c8], edi
mov dword [ebp - 0x198], 0xff
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1c0], edi
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1b4], edi
mov dword [0x1006b0c], edi
call fcn.01003c7d
mov eax, dword [ebx]
mov dword [0x1006b14], eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x100344c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x1006b14]
push 0x2715
push 2
call fcn.01003c85
add esp, 0x10
jmp 0x1003727
push 2
push edi
mov esi, 0x100126c
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [0x1006b10], eax
jne 0x1003486
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [0x1006b14]
push 0x2716
push 2
call fcn.01003c85
add esp, 0x14
jmp 0x1003727
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
mov dword [ebp - 0x1bc], eax
jle 0x100370e
cmp dword [ebp - 0x1b4], 0
je 0x10035a6
lea esi, [ebx + eax*4]
push dword [esi]
call dword [sym.imp.msvcrt.dll__strupr]
mov eax, dword [esi]
pop ecx
push 4
mov edi, 0x1001268
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10034d2
mov dword [ebp - 0x198], 1
jmp 0x100359a
push 6
mov edi, 0x1001260
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10034f1
mov dword [ebp - 0x198], 0x10
jmp 0x100359a
push 4
mov edi, 0x100125c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003510
mov dword [ebp - 0x198], 2
jmp 0x100359a
push 6
mov edi, 0x1001254
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x100352c
mov dword [ebp - 0x198], 0x20
jmp 0x100359a
push 3
mov edi, 0x1001250
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003548
mov dword [ebp - 0x198], 4
jmp 0x100359a
push 5
mov edi, 0x1001248
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003564
mov dword [ebp - 0x198], 0x40
jmp 0x100359a
push 5
mov edi, 0x1001240
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003580
mov dword [ebp - 0x198], 8
jmp 0x100359a
mov esi, eax
push 7
mov edi, 0x1001238
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10035dd
mov dword [ebp - 0x198], 0x80
and dword [ebp - 0x1b4], 0
jmp 0x10036f2
mov eax, dword [ebx + eax*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x10035e2
cmp cl, 0x2f
je 0x10035e2
cmp dword [ebp - 0x1b0], 0
jne 0x10035dd
lea ecx, [ebp - 0x1b0]
push ecx
push 0x1001234
push eax
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x10036f8
jmp 0x10026cd
lea esi, [eax + 1]
mov al, byte [esi]
test al, al
je 0x10036f8
mov edi, dword [sym.imp.msvcrt.dll_toupper]
movsx eax, al
push eax
call edi
cmp eax, 0x41
pop ecx
jne 0x1003610
mov dword [ebp - 0x19c], 1
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x42
pop ecx
jne 0x100362b
mov dword [ebp - 0x1c4], 1
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x45
pop ecx
jne 0x1003650
mov dword [ebp - 0x1b8], 1
mov dword [ebp - 0x198], 0xff
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x4e
pop ecx
jne 0x1003668
mov dword [ebp - 0x1a0], 1
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x4f
pop ecx
jne 0x1003680
mov dword [ebp - 0x1c0], 1
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x53
pop ecx
jne 0x1003698
mov dword [ebp - 0x1a4], 1
jmp 0x1003641
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x50
pop ecx
jne 0x10036b5
xor eax, eax
inc eax
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1b4], eax
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x52
pop ecx
jne 0x10036cd
mov dword [ebp - 0x1a8], 1
jmp 0x10036e7
movsx eax, byte [esi]
push eax
call edi
cmp eax, 0x56
pop ecx
jne 0x10035dd
mov dword [ebp - 0x1ac], 1
inc esi
mov al, byte [esi]
test al, al
jne 0x10035ef
mov edi, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1bc]
inc eax
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x1bc], eax
jl 0x1003498
call fcn.01003d52
test eax, eax
je 0x100372f
push eax
push 0x2773
push 2
call fcn.01003c85
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
cmp dword [ebp - 0x1b8], 0
je 0x100373e
push edi
call fcn.01001f16
cmp dword [ebp - 0x1a4], 0
mov ebx, dword [ebp - 0x198]
je 0x10037b4
test bl, 4
je 0x100375a
push edi
push 1
call fcn.01001fbc
test bl, 0x40
je 0x1003767
push edi
push 0xa
call fcn.01001fbc
test bl, 8
je 0x1003774
push edi
push 5
call fcn.01002076
test bl, bl
jns 0x1003780
push edi
push 0xf
call fcn.01002076
test bl, 1
je 0x100378d
push edi
push 6
call fcn.01001ffa
test bl, 0x10
je 0x100379a
push edi
push 0xb
call fcn.01001ffa
test bl, 2
je 0x10037a7
push edi
push 8
call fcn.01002038
test bl, 0x20
je 0x10037b4
push edi
push 0xd
call fcn.01002038
mov esi, dword [ebp - 0x1c8]
xor eax, eax
cmp esi, eax
je 0x10037c5
test bl, 0x33
jne 0x10037dd
cmp dword [ebp - 0x1b8], eax
jne 0x1003827
cmp dword [ebp - 0x1a4], eax
jne 0x1003827
cmp dword [ebp - 0x1a8], eax
jne 0x1003830
cmp dword [ebp - 0x1c4], eax
je 0x1003805
call fcn.01001d85
push edi
push dword [ebp - 0x19c]
push dword [ebp - 0x1a0]
push ebx
push esi
call fcn.0100314f
call fcn.01001e03
jmp 0x1003827
cmp dword [ebp - 0x1c0], eax
push dword [ebp - 0x19c]
push dword [ebp - 0x1a0]
push ebx
push esi
je 0x1003822
call fcn.01002f1c
jmp 0x1003827
call fcn.01002ddd
cmp dword [ebp - 0x1a8], 0
je 0x1003835
call fcn.010013c9
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x1003851
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100372f
push dword [0x1006b10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.010038e4
leave
ret