Function at 0x1014824
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov eax, 0x101cb51
call fcn.01018068
sub esp, 0x1f4
mov eax, dword [0x1020128]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1bc], ebx
mov dword [ecx + 0x6d8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [0x1020a44], eax
mov dword [ebp - 0x1c4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.010171b0
lea eax, [ebp - 0x1a4]
push eax
push 0x100325c
call fcn.0101722b
xor esi, esi
inc esi
cmp eax, esi
jne 0x10148a6
push esi
mov ecx, 0x10202fc
call fcn.0100e48f
jmp 0x10148ba
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
jle 0x10148ba
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
push edi
jge 0x10148de
mov ecx, dword [ebp - 0x1a8]
push eax
mov edi, 0x1483
push edi
push esi
mov dword [ebp - 0x1a4], edi
call fcn.0101149c
mov dword [0x1020a74], edi
lea eax, [ebp - 0x1a4]
push eax
push 0x1003228
call fcn.0101722b
cmp eax, esi
jne 0x10148fa
call fcn.010083f8
jmp 0x101490e
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
jle 0x101490e
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x1b0], eax
mov edi, 0x1488
jge 0x1014931
mov ecx, dword [ebp - 0x1a8]
push eax
push edi
push esi
call fcn.0101149c
mov dword [0x1020a74], edi
mov dword [ebp - 0x1e0], ebx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1d0], ebx
push esi
push ebx
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 4], ebx
call fcn.01014769
cmp dword [0x1020a74], ebx
jne 0x1014ada
mov dword [ebp - 0x1c0], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1bc]
push eax
push ebx
lea eax, [ebp - 0x1b8]
push eax
push ebx
push dword [0x10202f8]
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1bc], ebx
call edi
cmp eax, esi
mov dword [ebp - 0x1c8], eax
je 0x10149cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1014a51
mov eax, dword [ebp - 0x1b8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax + eax + 2]
push eax
push 0x40
call esi
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1bc]
lea eax, [eax + eax + 2]
push eax
push 0x40
call esi
cmp dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1b4], eax
je 0x1014a51
cmp eax, ebx
je 0x1014a51
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1bc]
push eax
push dword [ebp - 0x1b4]
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1ac]
push dword [0x10202f8]
push ebx
call edi
cmp eax, 1
mov dword [ebp - 0x1c8], eax
jne 0x1014a51
push eax
push dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1e0]
call fcn.01014119
jmp 0x1014a57
mov eax, dword [ebp - 0x1b0]
cmp dword [ebp - 0x1c8], ebx
jne 0x1014a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 0x1a4], eax
jle 0x1014a7b
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x1014aa9
lea eax, [ebp - 0x1c0]
push eax
mov ecx, 0x10202fc
call fcn.0100bec2
cmp eax, ebx
jl 0x1014aa9
push 1
push dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1e0]
call fcn.01014119
cmp eax, ebx
jge 0x1014ac3
mov ecx, dword [ebp - 0x1a8]
push eax
mov esi, 0x148c
push esi
push 1
call fcn.0101149c
mov dword [0x1020a74], esi
push dword [ebp - 0x1c0]
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov edi, 0x1488
inc esi
push ebx
push ebx
push ebx
push 3
push 4
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x1e0]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push esi
push 4
push 0x1020398
call fcn.010129a5
mov eax, dword [0x102021c]
push 0x73
push dword [eax + 8]
mov ecx, 0x102035c
call fcn.0100dc4d
mov eax, dword [0x102021c]
push 0x74
push dword [eax + 8]
mov ecx, 0x1020360
call fcn.0100dc4d
mov eax, dword [0x102021c]
push 0x75
push dword [eax + 8]
mov ecx, 0x1020364
call fcn.0100dc4d
cmp dword [0x1020a74], ebx
jne 0x1014e40
lea eax, [ebp - 0x1a4]
push eax
push 0x1003208
call fcn.0101722b
cmp eax, esi
jne 0x1014b66
call sub.mstlsapi.dll_TLSInit
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], ebx
je 0x1014b87
push dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a8]
push edi
push esi
call fcn.0101149c
mov dword [0x1020a74], edi
cmp dword [0x1020a74], ebx
jne 0x1014e40
lea eax, [ebp - 0x1a4]
push eax
push 0x10031e4
call fcn.0101722b
cmp eax, esi
jne 0x1014bb3
call fcn.0101348d
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], ebx
je 0x1014bd4
push dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a8]
push edi
push esi
call fcn.0101149c
mov dword [0x1020a74], edi
cmp dword [0x1020a74], ebx
jne 0x1014e40
lea eax, [ebp - 0x1a4]
push eax
push 0x10031ac
call fcn.0101722b
cmp eax, esi
jne 0x1014c06
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x1020394], eax
jmp 0x1014c12
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x1020394], ebx
jne 0x1014c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1a8]
push eax
push edi
push esi
call fcn.0101149c
mov dword [0x1020a74], edi
cmp dword [0x1020a74], ebx
jne 0x1014e40
lea eax, [ebp - 0x1a4]
push eax
push 0x1003178
call fcn.0101722b
cmp eax, esi
jne 0x1014c60
call fcn.0101ba6e
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], ebx
je 0x1014c8a
push dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a8]
mov esi, 0x1485
push esi
push 1
call fcn.0101149c
mov dword [0x1020a74], esi
xor esi, esi
inc esi
cmp dword [0x1020a74], ebx
jne 0x1014e40
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1014ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1a8]
push eax
mov esi, 0x1487
push esi
push 1
call fcn.0101149c
mov dword [0x1020a74], esi
xor esi, esi
inc esi
cmp dword [0x1020a74], ebx
jne 0x1014e40
lea eax, [ebp - 0x1a4]
push eax
push 0x1002414
call fcn.0101722b
cmp eax, esi
jne 0x1014cfd
push ebx
mov ecx, 0x1020300
call fcn.010105c8
jmp 0x1014d11
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
jle 0x1014d13
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1014d32
mov ecx, dword [ebp - 0x1a8]
push eax
mov esi, 0x1484
push esi
push 1
call fcn.0101149c
mov dword [0x1020a74], esi
xor esi, esi
inc esi
cmp dword [0x1020a74], ebx
jne 0x1014e40
cmp dword [0x1020330], ebx
mov ecx, 0x10202fc
jne 0x1014d5e
push ebx
call fcn.0100e2be
push ebx
mov ecx, 0x10202fc
call fcn.0100db95
jmp 0x1014d79
push esi
call fcn.0100e2be
push esi
mov ecx, 0x10202fc
call fcn.0100db95
mov ecx, 0x10202fc
call fcn.0100eaea
lea eax, [ebp - 0x1a4]
push eax
push 0x100313c
call fcn.0101722b
cmp eax, esi
jne 0x1014daa
xor eax, eax
cmp dword [0x1020330], ebx
push ebx
sete al
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x102038c], eax
jmp 0x1014db6
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x102038c], ebx
jne 0x1014dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1a8]
push eax
push edi
push esi
call fcn.0101149c
mov dword [0x1020a74], edi
lea eax, [ebp - 0x1a4]
push eax
push 0x10030fc
call fcn.0101722b
cmp eax, esi
jne 0x1014e12
lea eax, [ebp - 0x1e4]
push eax
push ebx
push dword [ebp - 0x1a8]
push 0x1013633
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [0x1020390], eax
jmp 0x1014e1e
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x1020390], ebx
jne 0x1014e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1a8]
push eax
push edi
push esi
call fcn.0101149c
mov dword [0x1020a74], edi
mov eax, dword [ebp - 0x1a8]
cmp dword [eax + 0x6b0], ebx
je 0x1014e57
push 4
mov ecx, eax
call fcn.01011a1b
lea eax, [ebp - 0x1a4]
push eax
push 0x10030d4
call fcn.0101722b
cmp eax, esi
jne 0x1014e88
lea eax, [ebp - 0x1c4]
push eax
push 0x1001608
push 0x15
push ebx
push 0x10030c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
jmp 0x1014e9c
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
jle 0x1014e9e
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1014ea7
mov esi, 0x1489
jmp 0x1014f1a
lea eax, [ebp - 0x1a4]
push eax
push 0x10030a4
call fcn.0101722b
cmp eax, esi
jne 0x1014ec3
call fcn.0100803c
jmp 0x1014ed7
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
jle 0x1014ed9
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x1014f15
lea eax, [ebp - 0x1a4]
push eax
push 0x1003064
call fcn.0101722b
cmp eax, esi
jne 0x1014efd
push dword [ebp - 0x1c4]
call fcn.010080c2
jmp 0x1014f11
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
jle 0x1014f13
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1014f2f
mov esi, 0x148a
mov ecx, dword [ebp - 0x1a8]
push eax
push esi
push 2
call fcn.0101149c
mov dword [0x1020a74], esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1014fa7
mov eax, dword [ebp - 0x1fc]
sub eax, 0x8001
je 0x1014f9c
dec eax
je 0x1014f95
dec eax
je 0x1014f6f
dec eax
je 0x1014f5c
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1014fa7
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f8]
call fcn.0100af34
jmp 0x1014fa7
call fcn.010132dc
cmp eax, ebx
mov dword [ebp - 0x1a4], eax
je 0x1014fa7
mov ecx, dword [ebp - 0x1a8]
push eax
push edi
push 1
call fcn.0101149c
mov dword [0x1020a74], edi
jmp 0x1014fa7
call fcn.0100b0b9
jmp 0x1014fa7
push dword [ebp - 0x1f4]
call fcn.0101428c
push ebx
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call esi
test eax, eax
jne 0x1014f37
call fcn.0100a02b
mov eax, dword [0x1020384]
cmp eax, ebx
pop edi
je 0x1014fd3
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
mov dword [0x1020384], ebx
mov eax, dword [0x1020380]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1014feb
push eax
call esi
mov dword [0x1020380], ebx
mov eax, dword [0x1020388]
cmp eax, ebx
je 0x1015001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1020388], ebx
mov eax, dword [ebp - 0x1c4]
cmp eax, ebx
je 0x1015011
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x1020398
call fcn.010129f2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x102038c]
cmp eax, ebx
je 0x101502d
push eax
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x1020300
call fcn.01010c47
call fcn.01019327
call fcn.0101ba3f
call fcn.01008087
cmp dword [ebp - 0x1ac], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1015062
push dword [ebp - 0x1ac]
call esi
cmp dword [ebp - 0x1b4], ebx
je 0x1015072
push dword [ebp - 0x1b4]
call esi
call sub.mstlsapi.dll_TLSShutdown
call fcn.01017207
lea ecx, [ebp - 0x1e0]
call fcn.01012b1b
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01017bb1
leave
ret