Function at 0x100301d
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x10060f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x19c], 0xff
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1b4], esi
mov byte [ebp - 0x19d], 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
push dword [ebp + 8]
mov dword [0x1006ea8], esi
call fcn.01003cd1
call fcn.01003dc4
mov eax, dword [ebx]
mov dword [0x1006eac], eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
je 0x10030e2
push eax
push dword [0x1006eac]
push 0x2715
push 2
call fcn.01003cd9
add esp, 0x10
push edi
call dword [sym.imp.msvcrt.dll_exit]
cmp dword [ebp + 8], edi
mov dword [ebp - 0x1a4], edi
jle 0x100343f
cmp dword [ebp - 0x1b4], 0
mov eax, dword [ebp - 0x1a4]
je 0x1003205
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, 0x10012ac
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003131
mov dword [ebp - 0x19c], 1
jmp 0x10031f9
push 6
mov edi, 0x10012a4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003150
mov dword [ebp - 0x19c], 0x10
jmp 0x10031f9
push 4
mov edi, 0x10012a0
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x100316f
mov dword [ebp - 0x19c], 2
jmp 0x10031f9
push 6
mov edi, 0x1001298
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x100318b
mov dword [ebp - 0x19c], 0x20
jmp 0x10031f9
push 3
mov edi, 0x1001294
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10031a7
mov dword [ebp - 0x19c], 4
jmp 0x10031f9
push 5
mov edi, 0x100128c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10031c3
mov dword [ebp - 0x19c], 0x40
jmp 0x10031f9
push 5
mov edi, 0x1001284
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10031df
mov dword [ebp - 0x19c], 8
jmp 0x10031f9
mov esi, eax
push 7
mov edi, 0x100127c
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100323c
mov dword [ebp - 0x19c], 0x80
and dword [ebp - 0x1b4], 0
jmp 0x100337d
mov eax, dword [ebx + eax*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1003241
cmp cl, 0x2f
je 0x1003241
cmp dword [ebp - 0x1ac], 0
jne 0x100323c
lea ecx, [ebp - 0x1ac]
push ecx
push 0x1001278
push eax
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x100337d
call fcn.01001c58
lea esi, [eax + 1]
jmp 0x1003373
mov edi, dword [sym.imp.msvcrt.dll_toupper]
movsx eax, al
push eax
call edi
pop ecx
cmp eax, 0x41
jne 0x100326a
mov dword [ebp - 0x1c4], 1
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x42
jne 0x1003289
or dword [ebp - 0x198], 8
mov byte [ebp - 0x19d], 1
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x45
jne 0x10032a1
mov dword [ebp - 0x1b8], 1
jmp 0x1003317
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x46
jne 0x10032bc
mov dword [ebp - 0x1c8], 1
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x4e
jne 0x10032d4
or dword [ebp - 0x198], 1
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x4f
jne 0x10032ec
or dword [ebp - 0x198], 2
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x54
jne 0x1003301
or dword [ebp - 0x198], 4
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x53
jne 0x1003323
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x19c], 0xff
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x50
jne 0x1003340
xor eax, eax
inc eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b4], eax
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x52
jne 0x1003358
mov dword [ebp - 0x1b0], 1
jmp 0x1003372
movsx eax, byte [esi]
push eax
call edi
pop ecx
cmp eax, 0x56
jne 0x100323c
mov dword [ebp - 0x1c0], 1
inc esi
mov al, byte [esi]
test al, al
jne 0x1003249
inc dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1a4]
cmp eax, dword [ebp + 8]
jl 0x10030f1
cmp byte [ebp - 0x19d], 0
je 0x100343f
call fcn.01004f80
test al, al
jne 0x100343f
mov esi, dword [sym.imp.msvcrt.dll__iob]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x198]
push ecx
push eax
push 0x2e4
push eax
push 0x1100
mov dword [ebp - 0x198], eax
add esi, 0x20
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jbe 0x100342c
push 0x8000
push esi
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__setmode]
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10033fb
sub eax, ecx
push eax
push dword [ebp - 0x198]
push dword [ebp - 0x198]
call dword [sym.imp.USER32.dll_CharToOemBuffA]
push dword [ebp - 0x198]
push 0x1001274
push esi
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
jmp 0x10030dc
call fcn.0100477a
xor edi, edi
cmp eax, edi
je 0x100345c
push eax
push 0x2773
push 2
call fcn.01003cd9
add esp, 0xc
jmp 0x1003438
mov esi, dword [ebp - 0x1c0]
cmp dword [ebp - 0x1b8], edi
je 0x1003470
push esi
call fcn.01002c0c
mov ebx, dword [ebp - 0x19c]
cmp dword [ebp - 0x1a8], edi
je 0x10034e5
test bl, 4
je 0x100348b
push esi
push 1
call fcn.01001da9
test bl, 0x40
je 0x1003498
push esi
push 0xa
call fcn.01001da9
test bl, 8
je 0x10034a5
push esi
push 5
call fcn.01001e63
test bl, bl
jns 0x10034b1
push esi
push 0xf
call fcn.01001e63
test bl, 1
je 0x10034be
push esi
push 6
call fcn.01001de7
test bl, 0x10
je 0x10034cb
push esi
push 0xb
call fcn.01001de7
test bl, 2
je 0x10034d8
push esi
push 8
call fcn.01001e25
test bl, 0x20
je 0x10034e5
push esi
push 0xd
call fcn.01001e25
cmp dword [ebp - 0x1bc], edi
je 0x10034f2
test bl, 0x33
jne 0x100350a
cmp dword [ebp - 0x1b8], edi
jne 0x1003528
cmp dword [ebp - 0x1a8], edi
jne 0x1003528
cmp dword [ebp - 0x1b0], edi
jne 0x1003530
push dword [ebp - 0x1c8]
push dword [ebp - 0x1c4]
push dword [ebp - 0x198]
push ebx
push dword [ebp - 0x1bc]
call fcn.01002cba
cmp dword [ebp - 0x1b0], edi
je 0x1003535
call fcn.01001eac
mov eax, dword [ebp - 0x1ac]
cmp eax, edi
je 0x1003551
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003462
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01003816
leave
ret