Function at 0x4150c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4df745
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x51bcaa
call fcn.004dd904
cmp dword [edi + 0x78c], 0
jg 0x415109
jl 0x4152a3
cmp dword [edi + 0x788], 0x128c5680
jbe 0x4152a3
push 0x18
call fcn.004b09cb
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 2
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x415321
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 0x4151a8
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41519c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41519c
call fcn.00406700
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415194
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 0x4151a8
push dword [ecx + 4]
lea ecx, [ebx + 4]
push edx
call fcn.004067e0
mov ecx, edi
call fcn.0046b8bb
mov dword [ebx], eax
mov ecx, dword [edi + 0x7d4]
call fcn.00467b15
lea ecx, [ebx + 0xc]
test al, al
je 0x4151ca
mov eax, 1
jmp 0x4151cc
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [edi + 0x7d8]
call fcn.00467b15
lea esi, [ebx + 0x10]
mov ecx, esi
test al, al
je 0x4151e9
mov eax, 1
jmp 0x4151eb
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [edi + 0x7dc]
call fcn.00467b15
xor ecx, ecx
test al, al
setne cl
mov dword [ebx + 0x14], ecx
cmp byte [edi + 0x772], 0
je 0x41522f
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 0x41522f
mov dword [esi], ecx
mov esi, dword [edi + 0x76c]
push 8
call fcn.004b09cb
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 0x40cb20
push 0
push 0
call fcn.004bdd78
add esp, 0x1c
mov dword [ebp - 0x14], eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x415338
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41532b
push ecx
push eax
call fcn.004b2274
add esp, 8
test eax, eax
jne 0x415332
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x76c]
call fcn.00416490
push 5
mov ecx, eax
call fcn.0040ad60
lea ecx, [ebp - 0x10]
call fcn.00406440
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x780]
push eax
call fcn.00405a90
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x10]
push 0x508cd0
push eax
call fcn.00406ac0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004031b0
lea ecx, [ebp - 0x10]
call fcn.004064a0
mov ecx, edi
mov esi, eax
call fcn.0046b8bb
push 0x40
push 0x508d24
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.004befab
push 0x80004005
call fcn.00402c50
push 1
call fcn.004b218f
push eax
call fcn.004b2162
push 6
mov dword [ebp - 0x10], 0
call fcn.004b218f
int3