Function at 0x1008566
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x1028084]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov ecx, 0x147
mov edi, 0x1028af8
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [0x1028af8], eax
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x1a0]
inc esi
push eax
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x1a0], esi
mov dword [0x1028b1c], ebx
mov byte [0x1028b02], 1
mov byte [0x1028b03], bl
mov dword [0x1028afc], 2
call fcn.01006314
cmp dword [ebp - 0x1a0], ebx
je 0x10085db
mov byte [0x1028f8f], 1
call fcn.0100a759
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x100865e
push eax
push ebx
push ebx
push 0xc00038ae
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
jmp 0x1008e46
call fcn.0100a628
test al, al
jne 0x10086c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebx
push 0xc00038af
mov dword [ebp - 0x198], eax
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0xb
jmp 0x100864e
mov eax, 0x1028ff0
mov dword [0x1028ff4], eax
mov dword [0x1028ff0], eax
mov eax, 0x1028fe0
mov dword [0x1028fe4], eax
mov dword [0x1028fe0], eax
lea eax, [ebp - 0x198]
push eax
mov dword [0x1028fe8], ebx
mov dword [0x1028ff8], ebx
mov dword [0x1028ffc], ebx
mov dword [0x1029000], ebx
mov dword [0x1029004], ebx
mov dword [0x1028fec], ebx
call fcn.010148ca
cmp eax, ebx
mov dword [0x1028f2c], eax
jne 0x100877a
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b1
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0xc
jmp 0x100864e
push 0x40
lea eax, [ebp - 0x198]
push eax
call fcn.010150be
cmp eax, ebx
mov dword [0x1028f30], eax
jne 0x10087ed
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b1
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0xd
jmp 0x100864e
push ebx
lea eax, [ebp - 0x198]
push eax
call fcn.01005c4f
cmp eax, ebx
mov dword [0x1028f34], eax
jne 0x1008863
push 8
pop eax
push eax
push ebx
push ebx
push 0xc00038b1
mov dword [ebp - 0x198], eax
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0xe
jmp 0x100864e
push 0xfa0
push 0x1028b04
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1008888
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
jmp 0x1008e46
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x1028fa0], eax
jne 0x10088fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebx
push 0xc00038b3
mov dword [ebp - 0x198], eax
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0xf
jmp 0x100864e
call fcn.01024bcd
call fcn.01006856
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x198]
push eax
call fcn.01007b92
cmp eax, ebx
mov dword [0x1028f28], eax
jne 0x1008935
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038bc
jmp 0x1008e41
mov dword [0x1028f50], 0x36ee80
mov byte [0x1028f92], bl
call fcn.0100722e
call fcn.01006d8b
call fcn.01012fdf
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x10089b5
push eax
push ebx
push ebx
push 0xc00038b2
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0x10
jmp 0x100864e
call fcn.0100667b
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008a05
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x10089f3
test word [eax + 0x1c], 0x820
je 0x10089f3
cmp byte [eax + 0x19], 1
jb 0x10089f3
push dword [ebp - 0x198]
push 0x1001fac
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b4
jmp 0x1008e41
push 0x1028f8e
call fcn.01016cd3
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008a62
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008a50
test word [eax + 0x1c], 0x820
je 0x1008a50
cmp byte [eax + 0x19], 1
jb 0x1008a50
movzx ecx, byte [0x1028f8e]
push ecx
push dword [ebp - 0x198]
push 0x1001fac
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100b411
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b5
jmp 0x1008e41
push 0x1028f90
call fcn.010168e6
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008ae0
push eax
push ebx
push ebx
push 0xc00038b6
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
movzx ecx, byte [0x1028f90]
push ecx
push dword [ebp - 0x198]
push 0x1001fac
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100b411
jmp 0x1008e46
push 0x1028fdc
call fcn.01015f91
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008b4b
push eax
push ebx
push ebx
push 0xc00038b6
call fcn.01015d3c
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e46
mov ecx, dword [ebp - 0x198]
neg ecx
sbb ecx, ecx
and ecx, 0xc
dec ecx
and ecx, 0x1f
mov edx, esi
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x1008e46
cmp byte [eax + 0x19], 1
jb 0x1008e46
push dword [ebp - 0x198]
push 0x1001fac
push 0x14
jmp 0x100864e
push ebx
push ebx
push 0x1028fd4
call fcn.010254a9
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008ba2
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008b90
test word [eax + 0x1c], 0x820
je 0x1008b90
cmp byte [eax + 0x19], 1
jb 0x1008b90
push dword [ebp - 0x198]
push 0x1001fac
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b7
jmp 0x1008e41
cmp byte [0x1028f90], 1
mov dword [0x1028fd8], ebx
jne 0x1008c19
push ebx
push ebx
push 0x1028fd8
call fcn.010254a9
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008c0d
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008bf6
test word [eax + 0x1c], 0x820
je 0x1008bf6
cmp byte [eax + 0x19], 1
jb 0x1008bf6
push dword [ebp - 0x198]
push 0x1001fac
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b7
call fcn.01015d3c
jmp 0x1008e54
mov byte [0x1028f8d], bl
mov byte [0x1028f8c], bl
test byte [ebp + 8], 1
je 0x1008c75
push esi
push 0x1001a10
call fcn.01007cec
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008c75
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008c63
test word [eax + 0x1c], 0x820
je 0x1008c63
cmp byte [eax + 0x19], 1
jb 0x1008c63
push dword [ebp - 0x198]
push 0x1001fac
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b8
jmp 0x1008e41
call fcn.0100642d
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008cc5
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008cb3
test word [eax + 0x1c], 0x820
je 0x1008cb3
cmp byte [eax + 0x19], 1
jb 0x1008cb3
push dword [ebp - 0x198]
push 0x1001fac
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b9
jmp 0x1008e41
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x19c]
push eax
push 4
push ebx
push 0x1007d96
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [0x1028f94], eax
je 0x1008dfb
mov eax, dword [0x1029018]
cmp eax, ebx
mov esi, 0x1001fac
je 0x1008d19
test byte [eax + 0x1c], 0x20
je 0x1008d19
cmp byte [eax + 0x19], 1
jb 0x1008d19
push dword [ebp - 0x19c]
push esi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
lea eax, [ebp - 0x19c]
push eax
push ebx
push ebx
push 0x1008091
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [0x1028f9c], eax
je 0x1008daf
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008d5d
test byte [eax + 0x1c], 0x20
je 0x1008d5d
cmp byte [eax + 0x19], 1
jb 0x1008d5d
push dword [ebp - 0x19c]
push esi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
call fcn.0102667f
cmp eax, ebx
mov dword [ebp - 0x198], eax
je 0x1008e54
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008d9b
test word [eax + 0x1c], 0x820
je 0x1008d9b
cmp byte [eax + 0x19], 1
jb 0x1008d9b
push dword [ebp - 0x198]
push esi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038ba
call fcn.01015d3c
jmp 0x1008df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008de4
test byte [eax + 0x1c], 0x20
je 0x1008de4
cmp byte [eax + 0x19], 1
jb 0x1008de4
push dword [ebp - 0x198]
push esi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [0x1028f94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1028f94], ebx
xor esi, esi
inc esi
jmp 0x1008e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1008e34
test byte [eax + 0x1c], 0x20
je 0x1008e34
cmp byte [eax + 0x19], 1
jb 0x1008e34
push dword [ebp - 0x198]
push 0x1001fac
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 0x198]
push ebx
push ebx
push 0xc00038b0
call fcn.01015d3c
cmp dword [ebp - 0x198], ebx
je 0x1008e54
mov dword [0x1028afc], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x198]
pop edi
pop esi
pop ebx
call fcn.01005634
leave
ret 4