Function at 0x10018190
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
lea edx, [eax - 0x18eb]
push esi
mov esi, dword [esp + 0x2c]
lea ebx, [ecx - 0x128]
add esi, 0xffffe357
mov dword [esp + 0xc], edx
push edi
mov edi, eax
mov dword [esp + 0x30], esi
xor eax, 0xbdd
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], eax
add ebp, 0x98a
lea eax, [esi + 0x1fd9]
mov dword [esp + 0x40], ebp
xor edi, 0x18eb
cmp esi, eax
mov esi, dword [esp + 0x38]
jg 0x1001837c
mov eax, dword [esp + 0x30]
xor edi, 0x15c4
push edi
add eax, 0x1d8b
sub ebp, 0xc18
push eax
push ecx
push ebp
lea eax, [ebp + 0x1340]
mov dword [esp + 0x3c], ebp
push eax
push 0x100a3a48
call fcn.100087c0
mov ecx, dword [esi + 0xd4]
add esp, 0x18
mov edx, dword [esp + 0x10]
add ecx, 0x6a981
xor dword [esi + 0x18], ecx
mov edi, eax
mov ecx, dword [esp + 0x30]
xor ecx, 0x1ca9
mov dword [esp + 0x20], edi
cmp edx, ecx
jge 0x1001837c
lea eax, [ebx + 0x933]
cmp dword [esp + 0x3c], eax
jg 0x100182a0
mov eax, dword [esp + 0x30]
sub ebx, 0x730
add eax, 0x214c
push eax
mov eax, dword [esp + 0x34]
add eax, 0x1336
push eax
push esi
mov eax, edi
xor eax, 0x3290
push eax
push dword [esp + 0x50]
lea eax, [edx + 0x1ca9]
push ecx
push eax
call fcn.100078b0
mov edx, dword [esp + 0x2c]
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x3c], ecx
jmp 0x10018380
mov ecx, dword [0x100a3af8]
mov edx, edi
mov eax, ecx
mov dword [esp + 0x14], edi
sub eax, edi
imul eax, dword [esi + 0xf4]
cmp edi, eax
ja 0x10018378
lea eax, [ebx + 0x9c7]
mov dword [esp + 0x40], eax
nop dword [eax]
mov eax, dword [esi + 0x4c]
cmp eax, dword [esp + 0x40]
jge 0x1001835e
xor ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
and ebp, edi
mov edx, dword [esp + 0x30]
mov edi, ebx
mov ebx, dword [esp + 0x40]
or edi, 0x24b4
and edi, dword [esp + 0x2c]
xor ecx, 0x2676
add edx, 0x2676
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
sub ebx, eax
mov eax, dword [esi + 0xb8]
add eax, ecx
push eax
mov eax, dword [0x100a3afc]
add eax, 0xffffdb4c
push eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 0x10]
add eax, dword [esi + 0xf4]
push eax
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ebx, 1
jne 0x10018311
mov ecx, dword [0x100a3af8]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov eax, ecx
add edx, 3
sub eax, edi
mov dword [esp + 0x14], edx
imul eax, dword [esi + 0xf4]
cmp edx, eax
jbe 0x100182d0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
lea eax, [ebp + 0xc18]
cmp edi, eax
jle 0x100183f7
lea eax, [ebx + 0x730]
push eax
lea eax, [edi - 0x4db]
push eax
lea eax, [ecx - 0x4db]
push eax
mov eax, ebx
xor eax, 0x3d4
push esi
push eax
call fcn.10009520
lea ecx, [edi - 0x80b]
add eax, 0x4a3
push ecx
mov ecx, dword [esp + 0x54]
xor ebp, 0xbdd
push ebp
push eax
lea eax, [ecx - 0x933]
xor ecx, 0x30e5
push eax
push ecx
push dword [0x1008a74c]
mov eax, ebx
xor eax, 0x3d0f
push eax
call fcn.1001a330
add esp, 0x30
lea eax, [ebx + 0x93a]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, edi
imul eax, edi
and eax, edx
cmp dword [esi + 0x40], eax
jb 0x1001846d
imul eax, dword [0x100a3ab4], 0x24b4
and eax, dword [esi + 0x80]
cmp edi, eax
je 0x1001846d
mov eax, dword [esi + 0xb4]
or eax, dword [esi + 0xa4]
sub eax, 0x2676
push eax
lea eax, [ebx + 0x214c]
push eax
mov eax, dword [esi + 0x94]
sub eax, 0x47c2
push eax
mov eax, dword [esp + 0x3c]
or eax, edx
push eax
mov eax, dword [esi + 0x60]
and eax, 0x1584
push eax
mov eax, dword [esi + 0x14]
and eax, 0x15c4
push eax
lea eax, [edx - 0x24b4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x30]
add dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x93a]
pop ebx
add esp, 0x18
ret