Function at 0x101f5deb
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x434], edi
test eax, eax
je 0x101f6497
cmp word [eax], di
je 0x101f6497
test esi, esi
je 0x101f6497
xor ecx, ecx
mov eax, esi
mov edx, 0x65c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
mov dword [ebp - 0x428], ebx
pop ecx
test ebx, ebx
jne 0x101f5e65
push 0x100a3a68
jmp 0x101f649c
imul eax, esi, 0x65c
push eax
push edi
push ebx
call sub.msvcrt.dll_memset
mov eax, edi
mov dword [ebp - 0x430], edi
add esp, 0xc
mov dword [ebp - 0x420], eax
mov esi, ebx
cmp dword [ebp - 0x42c], eax
jbe 0x101f635d
mov edx, dword [ebp - 0x424]
test esi, esi
je 0x101f60fc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x438], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x101f5eab
sub ecx, dword [ebp - 0x438]
sar ecx, 1
cmp ecx, 0x104
ja 0x101f60e9
push 0x209
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x41c], ebx
call fcn.102105bd
push 7
push 0x100a3058
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x101f6091
push 4
pop eax
push eax
push 0x1006adac
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x101f6091
push 6
push 0x100a3068
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x101f6091
mov ecx, esi
call fcn.101c14e8
test al, al
jne 0x101f6091
mov ecx, esi
call fcn.1021175a
test eax, eax
jne 0x101f6091
push 0x208
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [0x102a9c70]
test eax, eax
jne 0x101f5f7c
push esi
push 0x100a30c8
call fcn.100d3a67
pop ecx
pop ecx
push 2
pop eax
or word [esi + 0x418], ax
jmp 0x101f60aa
test byte [0x1029b530], 8
je 0x101f5fd9
lea ecx, [ebp - 0x41c]
call fcn.101f9ae5
test eax, eax
je 0x101f5fc8
cmp eax, 0xa1
je 0x101f5fb7
cmp eax, 0x10fe
lea eax, [ebp - 0x41c]
push eax
je 0x101f609b
push 0x100a3178
jmp 0x101f60a0
lea eax, [ebp - 0x41c]
push eax
push 0x100a3128
jmp 0x101f60a0
lea eax, [ebp - 0x41c]
push eax
push 0x100a3b28
jmp 0x101f60a0
xor ecx, ecx
inc ecx
call fcn.101e190b
test eax, eax
je 0x101f6007
lea eax, [ebp - 0x41c]
push eax
push 0x100a3b78
call fcn.100d3a67
pop ecx
pop ecx
push 4
pop eax
or word [esi + 0x418], ax
jmp 0x101f60a7
push 0x412
push edi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 0x41c]
mov ecx, esi
push 0x209
push 0xffffffffffffffff
call fcn.102105bd
mov ecx, esi
call fcn.101f9ae5
cmp eax, 0x10fe
jne 0x101f6056
mov ecx, esi
call fcn.101f9d85
test al, al
jne 0x101f6056
mov ecx, esi
call fcn.101f5cdf
test eax, eax
je 0x101f60b0
or word [esi + 0x418], 8
push edi
push 4
pop eax
push eax
push esi
push 0x101f64c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x414], eax
test eax, eax
jne 0x101f6082
push esi
push 0x100a3bf8
call fcn.100d3a67
pop ecx
pop ecx
jmp 0x101f60b0
mov eax, dword [ebp - 0x420]
inc eax
mov dword [ebp - 0x420], eax
jmp 0x101f60b6
test byte [0x1029b530], 8
je 0x101f60a7
push esi
push 0x100a3078
call fcn.100d3a67
pop ecx
pop ecx
push 2
pop eax
mov dword [esi + 0x424], eax
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x430]
add esi, 0x65c
mov edx, dword [ebp - 0x424]
inc ecx
add edx, 0x20a
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x424], edx
cmp ecx, dword [ebp - 0x42c]
jb 0x101f5e98
jmp 0x101f60fc
push edx
push 0x100a3ae0
call fcn.100d3a67
mov eax, dword [ebp - 0x420]
pop ecx
pop ecx
cmp eax, dword [ebp - 0x42c]
jbe 0x101f6114
push 0x100a3c70
call fcn.100d3a67
pop ecx
jmp 0x101f635d
test eax, eax
je 0x101f635d
add ebx, 0x434
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x420]
mov dword [eax + 0x428], ecx
lea esi, [eax + 0x414]
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x424], eax
cmp dword [esi], edi
je 0x101f6178
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x101f6172
push 0x100a3ce8
call fcn.100d3a67
pop ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [ebp - 0x424]
add esi, 0x65c
dec eax
mov dword [ebp - 0x424], eax
jne 0x101f614d
mov esi, dword [ebp - 0x428]
mov ecx, edi
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x438], ecx
cmp dword [esi + 0x414], edi
je 0x101f633b
mov dword [ebp - 0x424], 1
mov dword [ebp - 0x430], edi
push 0x3e8
push dword [esi + 0x414]
mov dword [ebp - 0x420], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101f62aa
cmp eax, 0x80
je 0x101f61ed
cmp eax, 0x102
je 0x101f6230
cmp eax, 0xffffffff
jne 0x101f62e1
test byte [esi + 0x418], 1
jne 0x101f61fc
mov dword [esi + 0x424], edi
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x414]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 0x420]
cmp ecx, 0x103
je 0x101f63e6
mov edx, 0x100a3f50
call fcn.101f99db
jmp 0x101f62e1
call fcn.101f2c80
test eax, eax
je 0x101f628c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x430], edi
jne 0x101f626f
mov eax, dword [ebp - 0x428]
push 0x1009fe88
mov dword [eax + 0x42c], 1
call fcn.100d3aca
pop ecx
mov dword [ebp - 0x434], 1
jmp 0x101f6275
mov dword [ebp - 0x424], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x434]
test eax, eax
jne 0x101f64a4
jmp 0x101f62e1
mov eax, dword [ebp - 0x430]
cmp eax, 0x1d4c0
jae 0x101f63c9
add eax, 0x3e8
mov dword [ebp - 0x430], eax
jmp 0x101f62e1
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], edi
push eax
push dword [esi + 0x414]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x101f62ef
push 0x100a3e10
call fcn.100d3a67
test byte [esi + 0x418], 1
pop ecx
jne 0x101f630e
mov dword [esi + 0x424], edi
cmp dword [ebp - 0x424], edi
jne 0x101f61b7
jmp 0x101f630e
cmp dword [ebp - 0x420], 0x103
je 0x101f641f
test byte [esi + 0x418], 1
jne 0x101f630e
mov dword [esi + 0x424], edi
mov eax, dword [esi + 0x414]
test eax, eax
je 0x101f6325
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x414], edi
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x434], 1
inc ecx
add esi, 0x65c
mov dword [ebp - 0x438], ecx
cmp ecx, eax
jb 0x101f619b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ebx, dword [ebp - 0x428]
push 0x100a3f70
call fcn.100d3aca
mov dword [esp], 0x100a3ff0
call fcn.100d3aca
pop ecx
cmp dword [ebp - 0x42c], edi
jbe 0x101f6488
lea esi, [ebx + 0x424]
mov ebx, dword [ebp - 0x42c]
lea eax, [esi - 0x424]
test eax, eax
je 0x101f6482
cmp dword [esi - 4], 0
lea eax, [esi - 0x424]
push eax
mov eax, dword [esi]
jbe 0x101f645f
push dword [esi - 4]
push dword [eax*8 + 0x102a5e50]
push 0x100a4064
call fcn.100d3aca
add esp, 0x10
jmp 0x101f6473
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x430], edi
jne 0x101f6410
push esi
push 0x100a3e80
call fcn.100d3a67
pop ecx
jmp 0x101f63ff
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x430], edi
jne 0x101f6410
push 0x100a3ef8
call fcn.100d3a67
mov eax, dword [ebp - 0x428]
pop ecx
mov dword [eax + 0x42c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
jmp 0x101f64a4
push 0x100a3d40
call fcn.100d3a67
test byte [esi + 0x418], 1
pop ecx
jne 0x101f6439
mov dword [esi + 0x424], edi
mov ecx, dword [ebp - 0x420]
mov edx, 0x100a3d94
call fcn.101f99db
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x430], edi
jne 0x101f6410
push 0x100a3dc0
jmp 0x101f63fa
push dword [eax*8 + 0x102a5e50]
push 0x100a408c
call fcn.100d3aca
add esp, 0xc
inc edi
add esi, 0x65c
cmp edi, ebx
jb 0x101f638c
mov ebx, dword [ebp - 0x428]
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x434]
jmp 0x101f64a3
push 0x100a3a3c
call fcn.100d3a67
xor eax, eax
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 4