Function at 0x416d3a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp ax, 0xd
mov word [esi + 0x14], ax
mov dword [ebp - 4], ebx
mov word [esi + 0x16], ax
jne 0x416d62
mov dword [esi + 0x58], 0x454194
jmp 0x416d9c
cmp ax, 0xe
je 0x416d95
cmp ax, 0xf
je 0x416d95
lea ecx, [esi + 0x18]
push ebx
mov dword [esi + 0x58], ecx
call fcn.0041e1a4
mov ax, word [esi + 0x14]
mov ecx, dword [esi + 0x58]
push eax
call fcn.0041e310
push ebx
lea ecx, [esi + 0x3c20]
call fcn.0040e487
jmp 0x416d9c
mov dword [esi + 0x58], 0x4541d4
or dword [esi + 0x2fd0], 0xffffffff
mov dword [esi + 4], ebx
mov dword [esi + 0x3c8c], 0x451748
mov byte [esi + 0x890], bl
mov byte [esi + 0x898], bl
mov dword [esi + 0x894], ebx
mov byte [esi + 0x899], bl
mov dword [esi + 0x888], ebx
push 0x8000
mov dword [esi + 0x88c], ebx
mov word [esi + 0x2fc8], bx
mov dword [esi + 0x2fcc], ebx
mov word [esi + 0x3454], bx
mov word [esi + 0x3456], bx
mov word [esi + 0x34ac], bx
mov word [esi + 0x89c], bx
mov word [esi + 0x89e], bx
mov word [esi + 0x8a0], bx
mov word [esi + 0x8a2], bx
mov word [esi + 0x3728], bx
mov word [esi + 0x3c50], bx
mov word [esi + 0x3c0c], bx
mov word [esi + 0x3c48], bx
mov word [esi + 0x3c78], bx
call fcn.0042b798
pop ecx
mov dword [esi + 0x1a68], eax
mov ax, word [esi + 0x14]
mov ecx, dword [ebp + 0xc]
cmp ax, bx
mov dword [esi + 0x3c4c], ecx
je 0x416e7b
cmp ax, 1
je 0x416e7b
cmp ax, 8
je 0x416e7b
cmp ax, 0xa
jne 0x416e8d
lea eax, [esi + 0x3746]
push ecx
push eax
call fcn.0042b1f0
pop ecx
pop ecx
jmp 0x416e8d
push 0x810
lea eax, [esi + 0x5c]
push ecx
push eax
call fcn.0042b2e0
add esp, 0xc
push edi
mov edi, 0x2002
push edi
call fcn.0042b798
push edi
mov dword [esi + 0x3458], eax
call fcn.0042b798
push edi
mov dword [esi + 0x3478], eax
call fcn.0042b798
push edi
mov dword [esi + 0x34a4], eax
call fcn.0042b798
push 0x1c80
mov dword [esi + 0x3c64], eax
call fcn.0042b798
push 0x348
mov dword [esi + 0x3c68], eax
call fcn.0042b798
add esp, 0x18
cmp dword [esi + 0x3458], ebx
mov dword [esi + 0x3c88], eax
je 0x416f12
cmp dword [esi + 0x3478], ebx
je 0x416f12
cmp dword [esi + 0x34a4], ebx
je 0x416f12
cmp dword [esi + 0x3c64], ebx
je 0x416f12
cmp dword [esi + 0x3c68], ebx
je 0x416f12
cmp eax, ebx
jne 0x416f19
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov word [esi + 0x880], bx
mov word [esi + 0x874], bx
mov word [esi + 0x876], bx
mov word [esi + 0x878], bx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x87c], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x86c], eax
call edi
mov dword [esi + 0x870], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x417103
push ebx
push ebx
call fcn.0042b9c1
add esp, 0x18
cmp word [ebp - 4], bx
mov dword [esi + 0x18c0], eax
pop edi
jne 0x416fae
cmp dword [esi + 0x1a68], ebx
je 0x416fae
cmp dword [esi + 0x87c], ebx
je 0x416fae
cmp dword [esi + 0x86c], ebx
je 0x416fae
cmp dword [esi + 0x870], ebx
je 0x416fae
cmp eax, ebx
je 0x416fae
xor ax, ax
jmp 0x416fc8
push str.Failed_to_allocate_resources_for_job
push dword [esi + 0x58]
call fcn.0041e63d
pop ecx
pop ecx
mov ecx, esi
call fcn.00416fce
mov ax, 1
pop esi
pop ebx
leave
ret 0x10