Function at 0x41d450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e8cd5
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x524e73
call fcn.004e6414
cmp dword [edi + 0x78c], 0
jg 0x41d499
jl 0x41d628
cmp dword [edi + 0x788], 0x128c5680
jbe 0x41d628
push 0x18
call fcn.004b8e60
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 2
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x41d6a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], 1
lea esi, [eax - 0x10]
mov edx, dword [edi + 0x780]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x41d538
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41d52c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41d52c
call fcn.00408b90
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d524
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebx + 4], eax
jmp 0x41d538
push dword [ecx + 4]
lea ecx, [ebx + 4]
push edx
call fcn.00408c90
mov ecx, edi
call fcn.00473f46
mov dword [ebx], eax
mov ecx, dword [edi + 0x7d4]
call fcn.004701a0
lea ecx, [ebx + 0xc]
test al, al
je 0x41d55a
mov eax, 1
jmp 0x41d55c
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [edi + 0x7d8]
call fcn.004701a0
lea esi, [ebx + 0x10]
mov ecx, esi
test al, al
je 0x41d579
mov eax, 1
jmp 0x41d57b
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [edi + 0x7dc]
call fcn.004701a0
xor ecx, ecx
test al, al
setne cl
mov dword [ebx + 0x14], ecx
cmp byte [edi + 0x772], 0
je 0x41d5bf
movzx eax, byte [edi + 0x773]
mov dword [ebx + 0xc], eax
mov eax, ecx
xor ecx, ecx
cmp byte [edi + 0x774], cl
cmovne eax, ecx
mov dword [ebx + 0x14], eax
cmp byte [edi + 0x775], cl
je 0x41d5bf
mov dword [esi], ecx
mov esi, dword [edi + 0x76c]
push 8
call fcn.004b8e60
mov dword [ebp - 0x18], eax
mov dword [eax], ebx
mov dword [eax + 4], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 3
push ecx
push 0
push eax
push 0x414ee0
push 0
push 0
call fcn.004c6685
add esp, 0x1c
mov dword [ebp - 0x14], eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x41d6b5
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 4
call fcn.0040e360
cmp dword [ebp - 0x10], 0
jne 0x41d6b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x76c]
call fcn.0041e810
push 5
mov ecx, eax
call fcn.0040f520
lea ecx, [ebp - 0x10]
call fcn.004086c0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x780]
push eax
call fcn.00407ce0
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x10]
push 0x5122a0
push eax
call fcn.00408f70
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004083e0
lea ecx, [ebp - 0x10]
call fcn.00408720
mov ecx, edi
mov esi, eax
call fcn.00473f46
push 0x40
push 0x5122f4
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.004c78b8
push 0x80004005
call fcn.00403bc0
call fcn.004c6716
push 6
mov dword [ebp - 0x10], 0
call fcn.004ba6f5
int3