Function at 0x417144
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x208], 2
push edi
sete al
xor ebx, ebx
lea edi, [ebp - 0x34]
push 0x2000012c
push 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x214]
mov dword [ebp - 0x20], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call fcn.0040c35a
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
lea eax, [esi + 0xa8]
push ecx
push eax
call fcn.00416c5a
mov edi, eax
cmp edi, ebx
jge 0x4171c5
push 0x441c96
push edi
call fcn.004315b6
pop ecx
pop ecx
jmp 0x417445
lea eax, [esi + 0x1b8]
push eax
lea edi, [esi + 0xa8]
push edi
call fcn.00428eb6
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push eax
push 1
push edi
call fcn.00416d32
mov edi, eax
cmp edi, ebx
jge 0x41720a
push edi
push 0x258
push 0x441b2c
call fcn.004315ca
push 0x441c7e
jmp 0x4171b8
cmp dword [esi + 0x30], 3
jne 0x417221
mov dword [ebp - 4], 1
mov edi, 0x8007015e
jmp 0x417445
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00428ee6
mov edi, eax
cmp edi, ebx
jge 0x417238
push 0x441c50
jmp 0x4171b8
call fcn.00428e70
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xe0], eax
lea eax, [esi + 0x78]
push eax
call fcn.00428e88
mov edi, eax
cmp edi, ebx
jge 0x41725f
push 0x441c28
jmp 0x4171b8
lea eax, [esi + 0x270]
cmp dword [eax], ebx
jne 0x417296
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0xac]
push eax
push dword [esi + 0x12c]
push dword [esi + 0xf4]
call fcn.00421a22
mov edi, eax
cmp edi, ebx
jge 0x417296
push 0x441972
jmp 0x4171b8
cmp dword [esi + 0x210], ebx
je 0x4172f8
push dword [esi + 0xe0]
push esi
call fcn.00416de4
mov edi, eax
cmp edi, ebx
jge 0x4172ba
push 0x441c14
jmp 0x4171b8
xor eax, eax
cmp dword [esi + 0x1e8], ebx
sete al
push eax
push dword [esi + 0x264]
lea eax, [esi + 0x78]
push dword [esi + 0x208]
push eax
push dword [esi + 0x284]
call fcn.00418cee
mov edi, eax
cmp edi, ebx
jge 0x4172f1
push 0x441be4
jmp 0x4171b8
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x14], ebx
jne 0x417322
push esi
call fcn.004293f2
mov edi, eax
cmp edi, ebx
jge 0x41731b
push 0x441bc8
push edi
call fcn.004315b6
pop ecx
pop ecx
jmp 0x417435
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x18]
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xc]
push ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0x416f64
push ebx
push ebx
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x417381
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41735f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x41736a
mov edi, 0x80004005
push edi
push 0x28f
push 0x441b2c
call fcn.004315ca
push 0x441ba8
jmp 0x41739a
cmp dword [esi + 0x1ec], ebx
jne 0x4173b0
push eax
call fcn.00416fe6
mov edi, eax
cmp edi, ebx
jge 0x4173a4
push 0x441b7e
push edi
call fcn.004315b6
pop ecx
pop ecx
jmp 0x417421
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x14], ebx
jne 0x4173e1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push esi
call fcn.0042b1e6
mov edi, eax
push edi
lea eax, [esi + 0xa8]
push eax
call fcn.0041694c
cmp dword [ebp + 8], ebx
je 0x4173f4
push dword [ebp + 8]
call fcn.00416fe6
cmp edi, ebx
jl 0x417421
mov edi, eax
cmp edi, ebx
jl 0x417421
cmp dword [ebp - 0xc], ebx
jne 0x417421
cmp dword [ebp - 0x10], ebx
jne 0x417421
cmp dword [ebp - 4], 2
je 0x417421
push dword [esi + 0x284]
lea eax, [esi + 0x208]
push eax
lea eax, [esi + 0xa8]
push eax
call fcn.00429598
cmp dword [ebp - 0x1c], ebx
je 0x417435
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push esi
call fcn.00428eec
cmp dword [ebp - 0x24], ebx
je 0x417445
push dword [esi + 0x284]
call fcn.00418dbc
mov dword [esi + 0xe0], ebx
call fcn.00428e7c
cmp dword [ebp - 8], ebx
je 0x417467
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x417478
lea eax, [esi + 0xa8]
push eax
call fcn.00416928
cmp dword [ebp + 8], ebx
je 0x417486
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xbc]
cmp eax, 0x66
jne 0x4174a5
mov dword [esi + 0x18], 1
push dword [esi + 0x18]
call fcn.0041bd48
push eax
push dword [ebp - 4]
call fcn.0041bedc
push eax
push edi
push 0x2000018f
push 1
call fcn.0040c35a
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8