Function at 0x10021222
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
push 8
call fcn.100a8a34
add esp, 4
mov dword [ebp - 0x4c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
jmp 0x100212fd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
fninit
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push ecx
push edx
rdtsc
mov ecx, 0x17
mul ecx
add eax, 7
mov ecx, 0x1000
sub ecx, 0x10
inc ecx
xor edx, edx
div ecx
add edx, 0x1000
mov eax, edx
pop edx
pop ecx
mov dword [ebp - 4], eax
nop
nop
push ecx
push edx
rdtsc
mov ecx, 0x17
mul ecx
add eax, 7
mov ecx, 0x1000
sub ecx, 0x10
inc ecx
xor edx, edx
div ecx
add edx, 0x1000
mov eax, edx
pop edx
pop ecx
mov dword [ebp - 8], eax
nop
nop
push ecx
push edx
rdtsc
mov ecx, 0x17
mul ecx
add eax, 7
mov ecx, 0x1000
sub ecx, 0x10
inc ecx
xor edx, edx
div ecx
add edx, 0x1000
mov eax, edx
pop edx
pop ecx
mov dword [ebp - 0xc], eax
nop
nop
push ecx
push edx
rdtsc
mov ecx, 0x17
mul ecx
add eax, 7
mov ecx, 0x1000
sub ecx, 0x10
inc ecx
xor edx, edx
div ecx
add edx, 0x1000
mov eax, edx
pop edx
pop ecx
mov dword [ebp - 0x10], eax
nop
nop
push ecx
push edx
rdtsc
mov ecx, 0x17
mul ecx
add eax, 7
mov ecx, 0x1000
sub ecx, 0x10
inc ecx
xor edx, edx
div ecx
add edx, 0x1000
mov eax, edx
pop edx
pop ecx
mov dword [ebp - 0x14], eax
nop
nop
push ecx
push edx
rdtsc
mov ecx, 0x17
mul ecx
add eax, 7
mov ecx, 0x1000
sub ecx, 0x10
inc ecx
xor edx, edx
div ecx
add edx, 0x1000
mov eax, edx
pop edx
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x64], esp
push 0
xor eax, eax
call dword [0x100c1bb0]
nop
nop
cmp dword [ebp - 0x64], esp
je 0x10021492
push 0x9f0
push 0x4027048
push 6
call fcn.100a8a40
add esp, 0xc
push 0x80000301
push 0
push dword [0x100c188c]
push 1
mov ebx, 0xc
mov eax, 0x100af560
call fcn.100a9580
add esp, 0x10
push 1
call fcn.1001ce48
mov dword [ebp - 0x64], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x100214dc
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x9dc
call fcn.100a97f0
add esp, 0x10
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x10021508
push ebx
call fcn.100a8a3a
add esp, 4
cmp dword [ebp - 0x68], 0
jg 0x10021543
push 0x80000301
push 0
push dword [0x100c188c]
push 1
mov ebx, 0x10
mov eax, 0x100af580
call fcn.100a9580
add esp, 0x10
mov eax, 0x100ba20b
jmp 0x10022357
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10021561
push eax
mov ebx, eax
call fcn.10001333
inc eax
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10021572
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
call fcn.1000b0d5
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10021598
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
call fcn.10015f3a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x68], eax
push dword [ebp - 0x20]
push dword [ebp - 0x68]
push dword [0x100c18cc]
mov ecx, 3
call fcn.10003e1d
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x100215fc
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x10021612
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x1002163e
push ebx
call fcn.100a8a3a
add esp, 4
mov dword [ebp - 0x74], 0
push 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.100147fa
mov dword [ebp - 0x7c], eax
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x10021688
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x1002169b
push ebx
call fcn.100a8a3a
add esp, 4
lea eax, [ebp - 0x7c]
push eax
call fcn.1000aec5
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
je 0x100216c0
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x80]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x100216d7
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10022440
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x83a3ee9c
push 0x80000301
push 0
push 0x4bae0966
push 1
mov ebx, 0x164
call fcn.100aaab0
add esp, 0x10
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10021742
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x2c], 0
je 0x1002175e
cmp dword [ebp + 0xc], 1
je 0x1002175e
xor eax, eax
jmp 0x10021763
mov eax, 1
test eax, eax
je 0x10021dc5
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
lea eax, [ebp - 0x68]
push eax
push 0x100c1900
call fcn.1001b0c1
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x100217b3
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x100217c9
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x100217f5
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x70]
push eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x1002180c
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x38], eax
call fcn.10015f3a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x68], eax
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
push 0x100ba79c
push dword [ebp - 0x68]
push 0x100ba79c
push dword [ebp - 0x20]
push 0x100ba79c
push dword [ebp - 0x28]
push 0x100ba79c
push dword [ebp - 0x1c]
push 0x100ba79c
push dword [ebp - 0x38]
push 0x100bb201
mov ecx, 0xc
call fcn.10003e1d
add esp, 0x30
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x100218b3
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x100218c6
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x100218dc
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x74], eax
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x10021908
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x74]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x1002191f
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x10021936
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
push 0x100bb209
mov ecx, 2
call fcn.10003e1d
add esp, 8
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x10021980
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x10021996
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x100219c2
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x6c]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x100219d9
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0xa860f3ec
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], 0
push 0
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0
push 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0
push 0
push dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
push eax
call fcn.10017f6c
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x10021a77
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x44], eax
mov eax, 0x100ba4a0
xor ecx, ecx
test eax, eax
je 0x10021a89
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x44]
xor ebx, ebx
test eax, eax
je 0x10021a9a
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10021ab1
dec eax
test ecx, ecx
je 0x10021ab1
call fcn.10008fdb
add esp, 0xc
test eax, eax
je 0x10021dc0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10021ad6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x10021ae7
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10021b10
push eax
mov ebx, eax
call fcn.10001333
inc eax
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x64]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10021b26
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov ebx, dword [ebp - 0x64]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x4c]
add ebx, 4
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10021b55
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x64]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10021b6b
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov ebx, dword [ebp - 0x64]
mov dword [ebx], eax
push 0x100c18b4
push 4
mov eax, 2
call fcn.100a94e0
add esp, 8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov ebx, dword [0x100c18b4]
mov dword [ebp - 0x68], ebx
call fcn.100027c5
mov dword [ebp - 0x6c], ecx
mov edi, dword [ebp - 0x68]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10021bc7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x6c]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x68]
call fcn.100a8a4c
add esp, 8
mov dword [0x100c18b4], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x6c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x64]
push edi
push eax
push 8
call fcn.100a8a34
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10021c2d
push eax
mov ebx, eax
call fcn.10001333
inc eax
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x10021c4a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100a8a34
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10015d48
mov dword [ebp - 0x68], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10021c8b
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x6c], eax
push 0x80000301
push 0
push dword [ebp - 0x30]
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
mov ecx, 2
call fcn.10003597
add esp, 8
mov dword [ebp - 0x74], eax
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x10021cf8
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x10021d0b
push ebx
call fcn.100a8a3a
add esp, 4
mov dword [ebp - 0x78], 0
push 0
push dword [ebp - 0x78]
push 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.1001b0c1
mov dword [ebp - 0x7c], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x10021d4b
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x74]
test ebx, ebx
je 0x10021d5e
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x10021d74
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
je 0x10021da0
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x80]
push eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x10021db7
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x50], eax
jmp 0x10021dc0
jmp 0x10021f88
mov ebx, dword [0x100c18b4]
call fcn.100027c5
push ebx
push ecx
mov eax, dword [ebp - 0x2c]
dec eax
jns 0x10021def
push 0x1160
push 0x4027048
push 4
call fcn.100a8a40
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10021e0c
push 0x1160
push 0x4027048
push 1
call fcn.100a8a40
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x64]
call fcn.10015d48
mov dword [ebp - 0x6c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10021e58
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x70], eax
push 0x80000301
push 0
push dword [ebp - 0x30]
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
push dword [ebp - 0x70]
mov ecx, 2
call fcn.10003597
add esp, 8
mov dword [ebp - 0x78], eax
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x10021ec5
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x74]
test ebx, ebx
je 0x10021ed8
push ebx
call fcn.100a8a3a
add esp, 4
mov dword [ebp - 0x7c], 0
push 0
push dword [ebp - 0x7c]
push 1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1001b0c1
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x10021f18
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x10021f2b
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x10021f41
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x84], eax
mov ebx, dword [ebp - 0x80]
test ebx, ebx
je 0x10021f6d
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x84]
push eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x10021f84
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x50], eax
call fcn.1001c02b
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x10021faa
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x54], eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10022502
mov dword [ebp - 0x58], eax
push 1
mov eax, 0x100ba79c
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10022bf6
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x10021ffa
push ebx
call fcn.100a8a3a
add esp, 4
lea eax, [ebp - 0x68]
push eax
call fcn.10003814
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x1002201f
push ebx
call fcn.100a8a3a
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x58]
push 1
mov ebx, 0x198
call fcn.100aa670
add esp, 0x10
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], 0
push 0
push dword [ebp - 0x74]
push 1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10015d48
mov dword [ebp - 0x78], eax
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x10022081
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x70]
test ebx, ebx
je 0x10022094
push ebx
call fcn.100a8a3a
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x100220bc
mov eax, 0x100ba4a0
push eax
push 3
mov ebx, 0x19c
call fcn.100a9ab0
add esp, 0x28
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], ecx
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x100220f4
push ebx
call fcn.100a8a3a
add esp, 4
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
cmp ecx, 0x80000101
jne 0x10022115
and eax, 0xff
jmp 0x10022176
cmp ecx, 0x80000201
jne 0x10022120
cwde
jmp 0x10022176
cmp ecx, 0x80000301
je 0x10022176
cmp ecx, 0x80000401
je 0x10022176
mov dword [ebp - 0x8c], eax
cmp ecx, 0x80000501
je 0x1002215d
cmp ecx, 0x80000601
je 0x10022165
push 0x12d9
push 0x4027048
push 2
call fcn.100a8a40
add esp, 0xc
fld dword [ebp - 0x8c]
jmp 0x10022171
mov dword [ebp - 0x88], edx
fld qword [ebp - 0x8c]
call fcn.10001554
mov dword [ebp - 0x5c], eax
call fcn.10015f3a
cmp dword [ebp - 0x5c], eax
je 0x100221b5
push 0x80000301
push 0
push dword [0x100c188c]
push 1
mov ebx, 0x10
mov eax, 0x100af580
call fcn.100a9580
add esp, 0x10
mov eax, 0x100ba20b
jmp 0x10022357
push 0
mov eax, 0x100ba79c
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10022bf6
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x100221ee
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x10022205
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov dword [ebp - 0x60], eax
push 0x80000301
push 0
push dword [0x100c188c]
push 1
mov ebx, 0x10
mov eax, 0x100af580
call fcn.100a9580
add esp, 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x10022240
mov eax, 0x100ba20b
push eax
push 1
mov ebx, 0x130
call fcn.100aa740
add esp, 0x10
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp qword [ebp - 0x6c]
fld qword [ebp - 0x6c]
fsub qword [0x100ba896]
fstp qword [ebp - 0x74]
fld qword [ebp - 0x74]
call fcn.10001554
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x1002229d
mov eax, 0x100ba20b
push eax
push 2
mov ebx, 0x138
call fcn.100a9650
add esp, 0x1c
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
call fcn.100200da
mov dword [ebp - 0x7c], eax
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x100222db
push ebx
call fcn.100a8a3a
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x100222f1
mov eax, 0x100ba4a0
push eax
push 1
mov ebx, 0x168
call fcn.100a9eb0
add esp, 0x10
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
je 0x1002231d
push ebx
call fcn.100a8a3a
add esp, 4
mov eax, dword [ebp - 0x80]
jmp 0x10022357
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10022368
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10022378
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10022388
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10022398
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x100223a8
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x100223b8
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x100223c8
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x100223d8
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x4c]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x100223ec
push ebx
call fcn.100a8a3a
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10022400
push ebx
call fcn.100a8a3a
add esp, 4
pop ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x10022419
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x10022429
push ebx
call fcn.100a8a3a
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x10022439
push ebx
call fcn.100a8a3a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc