Function at 0x411fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x434e73
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4451b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x4121d7
mov eax, dword [ebx + 0x28]
mov edx, dword [eax + 4]
lea ecx, [ebx + 0x28]
mov dword [esp + 0x18], ecx
call edx
mov dword [esp + 0x58], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x4121c4
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push edi
push esi
push esi
mov dword [esp + 0x2c], esi
call fcn.0041c687
add esp, 0x18
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x4121c4
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x41205f
mov ecx, dword [esp + 0x14]
push eax
call fcn.00412500
mov eax, dword [ebx + 0x20]
mov edi, dword [ebx + 8]
add ebx, 8
mov dword [esp + 0x1c], esi
mov eax, dword [eax]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx]
test edi, edi
je 0x412083
cmp edi, eax
je 0x412088
call fcn.0041af1f
cmp dword [esp + 0x28], esi
je 0x412147
test edi, edi
jne 0x4120dc
call fcn.0041af1f
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x18]
jne 0x4120ab
call fcn.0041af1f
mov edx, dword [esp + 0x28]
mov esi, dword [edx + 0x10]
test esi, esi
jne 0x4120e0
mov eax, edx
lea esi, [esp + 0x24]
mov dword [esp + 0x30], eax
call fcn.004130f0
mov ecx, dword [esp + 0x30]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
push ebx
call fcn.00412640
mov edi, dword [esp + 0x24]
jmp 0x412076
mov eax, dword [edi]
jmp 0x41209d
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x412135
cmp dword [esp + 0x1c], 0x103
je 0x412135
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411fa0
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x24]
mov dword [esp + 0x38], eax
call fcn.004130f0
mov ecx, dword [esp + 0x38]
push ecx
push edi
lea edx, [esp + 0x4c]
push edx
push ebx
call fcn.00412640
mov edi, dword [esp + 0x24]
jmp 0x412076
lea esi, [esp + 0x24]
call fcn.004130f0
mov edi, dword [esp + 0x24]
jmp 0x412076
push 0x28
call fcn.0041aa06
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x58], 1
test eax, eax
je 0x412173
mov ecx, dword [esp + 0x20]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
push eax
call fcn.00411d20
mov esi, eax
jmp 0x412175
xor esi, esi
mov byte [esp + 0x58], 0
test esi, esi
je 0x41218b
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.00412590
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x412198
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14