Function at 0x414170
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x447826
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8]
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xcc]
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ecx
mov byte [esp + 0x80], cl
mov edi, dword [eax]
mov dword [esp + 0xc0], ecx
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx]
mov ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
lea ebx, [ebx]
mov ebp, dword [eax + 0x18]
mov eax, dword [eax]
test edi, edi
je 0x41420d
cmp edi, eax
je 0x414212
call fcn.0043143f
cmp ebx, ebp
je 0x414339
test edi, edi
jne 0x41432b
call fcn.0043143f
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x414233
call fcn.0043143f
lea esi, [ebx + 0xc]
push esi
lea ecx, [esp + 0x64]
push 0x26
push ecx
call fcn.00411a00
push 0x3d
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0xd8], 1
call fcn.00411aa0
add esp, 0x18
mov ebp, eax
mov byte [esp + 0xc0], 2
test edi, edi
jne 0x414332
call fcn.0043143f
cmp ebx, dword [edi + 0x18]
jne 0x41427c
call fcn.0043143f
add esi, 0x1c
push esi
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.00411b50
add esp, 0xc
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xcc], 3
call fcn.004035da
mov esi, 0x10
cmp dword [esp + 0x40], esi
jb 0x4142c0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00430dfa
add esp, 4
mov edi, 0xf
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], 0
cmp dword [esp + 0x5c], esi
jb 0x4142e5
mov edx, dword [esp + 0x48]
push edx
call fcn.00430dfa
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
mov byte [esp + 0xc0], 0
cmp dword [esp + 0x78], esi
jb 0x41430d
mov eax, dword [esp + 0x64]
push eax
call fcn.00430dfa
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00403aa4
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
jmp 0x414200
mov eax, dword [edi]
jmp 0x414229
mov edi, dword [edi]
jmp 0x414272
cmp dword [esp + 0x90], 0
je 0x41435e
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x41435b
lea eax, [esp + 0x80]
mov byte [eax], 0x3f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.00411cf0
add esp, 0xc
lea ebx, [esi + 0x80]
push ebx
mov byte [esp + 0xc4], 4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0xb0], 0x10
mov edx, dword [esp + 0x9c]
jae 0x4143a5
lea edx, [esp + 0x9c]
xor ebp, ebp
mov eax, edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4143c0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00404dad
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x98]
mov byte [esp + 0xc4], 5
call fcn.004140c0
mov edi, 0x10
cmp dword [esp + 0x40], edi
jb 0x414404
mov edx, dword [esp + 0x2c]
push edx
call fcn.00430dfa
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x74], ebp
jne 0x414435
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
push 0x4138e0
push ebp
push ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
cmp dword [esp + 0xb0], edi
jb 0x41444e
mov edx, dword [esp + 0x9c]
push edx
call fcn.00430dfa
add esp, 4
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], ebp
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], edi
jb 0x414481
mov eax, dword [esp + 0x80]
push eax
call fcn.00430dfa
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004310bf
add esp, 0xb0
ret 8