Function at 0x10001880
Capabilities:
Create thread
Get common file path
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x1001240c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x264]
push esi
push edi
push ebp
push 0x10019328
call fcn.100030f0
lea eax, [esp + 0x44]
xor ebx, ebx
push eax
lea ecx, [esp + 0x38]
push ebx
push ecx
push 0x10001660
push ebx
push ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebp
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x100018f2
push 0x100192f8
call fcn.100030f0
add esp, 4
jmp 0x10001c48
mov edx, dword [esp + 0x3c]
push edx
push 0x100192e4
push str.k_v_t2S
push 0x100192d0
call fcn.10001120
mov eax, dword [esp + 0x280]
add esp, 0x10
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
push 0xffffffffffffffff
push ebx
push ecx
push 2
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, ebx
je 0x10001c23
cmp edi, 1
jne 0x10001c23
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], ebx
je 0x10001c48
mov eax, dword [esp + 0x2c]
test eax, eax
mov ebx, eax
je 0x10001a33
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x100019c1
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x274]
lea edx, [esp + 0x14]
push edx
xor esi, esi
mov eax, dword [ecx + 8]
push 1
push eax
mov dword [esp + 0x270], esi
call fcn.10001ec0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x264], 0xffffffff
cmp eax, esi
je 0x10001a11
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10001a08
cmp al, 0xff
je 0x10001a08
dec al
mov byte [ecx], al
jmp 0x10001a11
push ecx
call fcn.1000b810
add esp, 4
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x18], esi
cmp ebx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
jne 0x1000195f
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x26c]
mov edx, dword [esp + 0x274]
mov eax, dword [eax + 0x18]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x10001a48
xor esi, esi
jmp 0x10001a50
mov esi, dword [edx + 8]
sub esi, ecx
sar esi, 4
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push esi
push eax
push ebp
push 0x100192a4
call fcn.100030f0
mov eax, dword [0x10019eb4]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x38], ecx
test eax, eax
jne 0x10001c15
mov eax, dword [0x10019eac]
mov dword [esp + 0x14], 0x1001924c
test eax, eax
mov dword [esp + 0x18], 0x10002350
mov dword [esp + 0x1c], 0x10019240
mov dword [esp + 0x20], 0x10002a70
mov dword [esp + 0x24], 0x10019230
mov dword [esp + 0x28], 0x10002300
jne 0x10001c0b
lea edx, [esp + 0x154]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10001c01
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001920c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x48]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10001b59
push 0x1001924c
push esi
call ebp
test eax, eax
jne 0x10001bd1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10019204
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x10001c01
push 0x1001924c
push esi
call ebp
test eax, eax
jne 0x10001bd1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10001c01
xor ebx, ebx
lea edi, [esp + 0x18]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x10001bc8
inc ebx
add edi, 8
cmp ebx, 3
jl 0x10001bd7
xor eax, eax
mov edx, dword [esp + eax + 0x18]
mov dword [eax + 0x1001921c], edx
add eax, 8
cmp eax, 0x18
jl 0x10001bef
mov dword [0x10019eac], 1
mov eax, dword [0x1001922c]
mov dword [0x10019eb4], eax
mov ecx, dword [esp + 0x38]
push ecx
call eax
mov eax, 1
jmp 0x10001c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x10019258
call fcn.100030f0
add esp, 0xc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret