Function at 0x4012c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str._sv_port]
mov dx, word [0x402284]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, 0x14
mov esi, str.___shard_id_0__dedicated__devmode__uid_0__token_0_online_masterserver_resource
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x402280]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x10], eax
mov al, byte [0x402286]
or edi, 0xffffffff
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov byte [ebp - 6], al
mov dword [ebp - 0x2a8], edi
jle 0x401390
cmp esi, 1
jne 0x40133c
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x3c]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401330
jmp 0x40138a
cmp esi, 2
jne 0x401352
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov edi, eax
jmp 0x40138a
cmp esi, 3
jne 0x40136c
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [ebp - 0x2a8], eax
jmp 0x40138a
cmp esi, 4
jne 0x40138a
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x2a0]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401380
inc esi
cmp esi, dword [ebp + 8]
jl 0x401320
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0x402287
push 0x401250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], edi
jg 0x401578
nop
mov edx, dword [ebp - 0x2a4]
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__itoa]
lea eax, [ebp - 0x90]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013e0
sub eax, edx
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013f5
sub eax, edx
mov ebx, eax
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401406
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401417
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x2a0]
lea esi, [eax + 1]
jmp 0x401430
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401430
mov ecx, dword [ebp - 0x2ac]
sub eax, esi
add eax, edx
add eax, edi
add eax, ebx
lea edx, [eax + ecx + 5]
push edx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebp - 0x90]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x401460
lea ecx, [ebp - 0x3c]
mov esi, ecx
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401470
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401480
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x10]
mov esi, ecx
jmp 0x4014a0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4014a0
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4014b0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
mov esi, ecx
jmp 0x4014d0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4014d0
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4014e0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, eax
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401500
mov cx, word [0x402288]
mov word [edi], cx
lea ecx, [ebp - 0x2a0]
mov esi, ecx
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401520
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401530
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x2b0]
push edx
push 0
push eax
push fcn.004010b0
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x2a4]
inc eax
cmp eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], eax
jle 0x4013c0
mov edi, dword [sym.imp.MSVCR90.dll_scanf]
lea eax, [ebp - 0xa0]
push eax
push 0x40228c
call edi
add esp, 8
mov ecx, 0x402290
lea eax, [ebp - 0xa0]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015c0
test dl, dl
je 0x4015bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015a0
xor eax, eax
jmp 0x4015c5
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x40161c
nop
push 0x3e8
call esi
lea ecx, [ebp - 0xa0]
push ecx
push 0x40228c
call edi
add esp, 8
mov ecx, 0x402290
lea eax, [ebp - 0xa0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401613
test dl, dl
je 0x40160f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401613
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015f3
xor eax, eax
jmp 0x401618
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015d0
push 0x1388
mov byte [0x403370], 1
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040164a
mov esp, ebp
pop ebp
ret