Function at 0x417180
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.0040c33a
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
lea eax, [esi + 0xa8]
push ecx
push eax
call fcn.00416c98
mov edi, eax
cmp edi, ebx
jge 0x417201
push 0x4419f4
push edi
call fcn.004314ba
pop ecx
pop ecx
jmp 0x417481
lea eax, [esi + 0x1b8]
push eax
lea edi, [esi + 0xa8]
push edi
call fcn.00428cd8
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push eax
push 1
push edi
call fcn.00416d70
mov edi, eax
cmp edi, ebx
jge 0x417246
push edi
push 0x258
push 0x441888
call fcn.004314ce
push 0x4419dc
jmp 0x4171f4
cmp dword [esi + 0x30], 3
jne 0x41725d
mov dword [ebp - 4], 1
mov edi, 0x8007015e
jmp 0x417481
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00428d08
mov edi, eax
cmp edi, ebx
jge 0x417274
push 0x4419ae
jmp 0x4171f4
call fcn.00428c92
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xe0], eax
lea eax, [esi + 0x78]
push eax
call fcn.00428caa
mov edi, eax
cmp edi, ebx
jge 0x41729b
push 0x441986
jmp 0x4171f4
lea eax, [esi + 0x270]
cmp dword [eax], ebx
jne 0x4172d2
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0xac]
push eax
push dword [esi + 0x12c]
push dword [esi + 0xf4]
call fcn.004219c0
mov edi, eax
cmp edi, ebx
jge 0x4172d2
push 0x4416ce
jmp 0x4171f4
cmp dword [esi + 0x210], ebx
je 0x417334
push dword [esi + 0xe0]
push esi
call fcn.00416e22
mov edi, eax
cmp edi, ebx
jge 0x4172f6
push 0x441972
jmp 0x4171f4
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.00418d2a
mov edi, eax
cmp edi, ebx
jge 0x41732d
push 0x441942
jmp 0x4171f4
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x14], ebx
jne 0x41735e
push esi
call fcn.00429216
mov edi, eax
cmp edi, ebx
jge 0x417357
push 0x441926
push edi
call fcn.004314ba
pop ecx
pop ecx
jmp 0x417471
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 0x416fa2
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 0x4173bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41739b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x4173a6
mov edi, 0x80004005
push edi
push 0x28f
push 0x441888
call fcn.004314ce
push 0x441906
jmp 0x4173d6
cmp dword [esi + 0x1ec], ebx
jne 0x4173ec
push eax
call fcn.00417022
mov edi, eax
cmp edi, ebx
jge 0x4173e0
push 0x4418dc
push edi
call fcn.004314ba
pop ecx
pop ecx
jmp 0x41745d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x14], ebx
jne 0x41741d
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.0042b00c
mov edi, eax
push edi
lea eax, [esi + 0xa8]
push eax
call fcn.0041698a
cmp dword [ebp + 8], ebx
je 0x417430
push dword [ebp + 8]
call fcn.00417022
cmp edi, ebx
jl 0x41745d
mov edi, eax
cmp edi, ebx
jl 0x41745d
cmp dword [ebp - 0xc], ebx
jne 0x41745d
cmp dword [ebp - 0x10], ebx
jne 0x41745d
cmp dword [ebp - 4], 2
je 0x41745d
push dword [esi + 0x284]
lea eax, [esi + 0x208]
push eax
lea eax, [esi + 0xa8]
push eax
call fcn.004293bc
cmp dword [ebp - 0x1c], ebx
je 0x417471
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push esi
call fcn.00428d0e
cmp dword [ebp - 0x24], ebx
je 0x417481
push dword [esi + 0x284]
call fcn.00418df8
mov dword [esi + 0xe0], ebx
call fcn.00428c9e
cmp dword [ebp - 8], ebx
je 0x4174a3
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 0x4174b4
lea eax, [esi + 0xa8]
push eax
call fcn.00416966
cmp dword [ebp + 8], ebx
je 0x4174c2
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 0x4174e1
mov dword [esi + 0x18], 1
push dword [esi + 0x18]
call fcn.0041bd8e
push eax
push dword [ebp - 4]
call fcn.0041bf22
push eax
push edi
push 0x2000018f
push 1
call fcn.0040c33a
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8