Function at 0x413fc0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4397dc]
sub esp, 8
test eax, eax
push ebp
push esi
mov ebp, ecx
jne 0x41415d
mov al, byte [0x439eb6]
test al, al
jne 0x414005
mov eax, dword [0x43b3b8]
push 0x104
cmp eax, 3
jne 0x413ff3
push 0x43a0be
jmp 0x413ff8
push 0x43ae74
push 0x439eb6
call fcn.0042747e
add esp, 0xc
mov eax, dword [0x43b594]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414148
mov edx, dword [0x43b594]
mov eax, dword [edx + 0x24]
lea esi, [edx + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41408e
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x414069
mov edx, dword [0x4350bc]
add eax, 0xfffffff4
cmp eax, edx
je 0x41408e
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41405f
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00426ac0
add esp, 4
mov ecx, dword [0x4350b8]
mov dword [esi], ecx
jmp 0x41408e
mov edx, 0x43965c
test edx, edx
jne 0x414076
xor eax, eax
jmp 0x414081
push 0x43965c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x43965c
push eax
mov ecx, esi
call fcn.00401f40
mov ecx, dword [0x43b594]
push ebx
push edi
push 0xffff0000
call fcn.00415a90
mov ecx, dword [0x43b594]
mov eax, dword [ecx + 0x28]
add ecx, 0x24
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00404650
mov eax, dword [0x43b594]
mov esi, dword [eax + 0x2c]
lea edx, [eax + 0x24]
mov eax, dword [esi - 8]
test eax, eax
je 0x414127
mov edi, dword [edx]
mov ecx, dword [edi - 0xc]
lea ebx, [edi - 0xc]
cmp ecx, 1
mov dword [esp + 0x10], ebx
jg 0x41410f
mov ebx, dword [edi - 8]
lea ecx, [ebx + eax]
cmp ecx, dword [edi - 4]
jg 0x41410b
mov ecx, eax
add edi, ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx]
mov esi, dword [ecx - 8]
add esi, eax
mov dword [ecx - 8], esi
mov edx, dword [edx]
mov eax, dword [edx - 8]
mov byte [eax + edx], 0
jmp 0x414127
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi - 8]
push esi
push eax
push edi
push ecx
mov ecx, edx
call fcn.0040f800
test eax, eax
je 0x414127
push ebx
call fcn.00409490
mov edx, dword [0x43b594]
mov ecx, dword [0x43b3b8]
push 0
mov eax, dword [edx + 0x24]
push eax
push ecx
mov ecx, 0x4397a8
call fcn.0040ae80
pop edi
pop ebx
jmp 0x41415d
mov edx, dword [0x43b3b8]
push 0
push 0
push edx
mov ecx, 0x4397a8
call fcn.0040ae80
test byte [0x43b3bc], 2
je 0x4141e1
mov eax, dword [0x43b324]
mov esi, dword [sym.imp.USER32.dll_LoadImageA]
push 0
push 0
push 0
push 1
push 0x80
push eax
call esi
push 0
push 0
mov dword [ebp + 0x24], eax
mov ecx, dword [0x43b324]
push 0
push 1
push 0x81
push ecx
call esi
mov edx, dword [ebp + 4]
lea esi, [ebp + 0x5c]
push 0x80
push 0xa01
push edx
mov ecx, esi
mov dword [ebp + 0x28], eax
call fcn.00411760
mov eax, dword [0x439698]
mov ecx, esi
push eax
call fcn.004117e0
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.004117c0
push 0
mov ecx, esi
call fcn.00411c80
mov ecx, esi
call fcn.00411910
mov ecx, dword [ebp + 4]
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push fcn.004234b0
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x3c], eax
pop esi
xor eax, eax
pop ebp
add esp, 8
ret