Function at 0x49af4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, 0x4cf9c4
call fcn.004ad4bc
mov dword [ebp - 0x20], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.004b7538
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 8
mov edx, dword [ebx + 0x2e0]
mov eax, dword [ebx + 0x2e4]
mov edx, dword [edx + 0x60]
call fcn.0044ff18
xor ecx, ecx
mov dword [ebx + 0x3c4], ecx
mov byte [ebx + 0x3bc], 0
mov byte [ebx + 0x3fc], 1
cmp byte [ebx + 0x375], 0
je 0x49affe
mov word [ebp - 0x2c], 0x14
push 3
lea eax, [ebp - 4]
push eax
call fcn.004b747c
add esp, 8
lea eax, [ebp - 4]
call fcn.004b7868
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
add edx, 2
mov dl, byte [edx]
call fcn.004b75d0
inc dword [ebp - 0x20]
call fcn.004b7b68
mov dword [ebx + 0x3b0], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
jmp 0x49b046
mov word [ebp - 0x2c], 0x20
push 2
lea ecx, [ebp - 4]
push ecx
call fcn.004b747c
add esp, 8
lea eax, [ebp - 4]
call fcn.004b7868
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
inc edx
mov dl, byte [edx]
call fcn.004b75d0
inc dword [ebp - 0x20]
call fcn.004b7b68
mov dword [ebx + 0x3b0], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b7660
mov word [ebp - 0x2c], 0x2c
mov edx, 0x4cae88
lea eax, [ebp - 0x10]
call fcn.004b7538
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov eax, ebx
call fcn.00492938
xor ecx, ecx
mov edx, 2
mov cl, al
cmp ecx, 1
sbb eax, eax
neg eax
push eax
lea eax, [ebp - 0x10]
dec dword [ebp - 0x20]
call fcn.004b7660
pop ecx
test cl, cl
je 0x49b095
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00489ab8
jmp 0x49b247
mov eax, ebx
call fcn.0048c994
test al, al
jne 0x49b0cc
mov edx, dword [0x4da0ec]
mov eax, dword [edx]
call fcn.00446508
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b7660
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
jmp 0x49b261
mov eax, ebx
call fcn.0048cf5c
mov eax, ebx
call fcn.0048d0dc
mov word [ebp - 0x2c], 8
xor esi, esi
jmp 0x49b1e5
mov word [ebp - 0x2c], 0x38
mov edx, 0x4ca790
lea eax, [ebp - 0x14]
call fcn.004b7500
inc dword [ebp - 0x20]
mov edi, esi
shl edi, 2
lea edx, [ebp - 0x14]
add edi, dword [ebx + 0x390]
mov eax, dword [edi]
add eax, 0x58
call fcn.004b7744
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b7660
pop ecx
test cl, cl
je 0x49b165
mov eax, dword [ebx + 0x2e4]
mov eax, dword [eax + 0x20c]
mov edi, esi
mov edx, edi
call fcn.004617d8
xor edx, edx
call fcn.004611e0
mov eax, dword [ebx + 0x2e4]
mov edx, edi
mov eax, dword [eax + 0x20c]
call fcn.004617d8
xor ecx, ecx
xor edx, edx
call fcn.004613e0
jmp 0x49b1e4
mov word [ebp - 0x2c], 0x44
mov edx, 0x4ca792
lea eax, [ebp - 0x18]
call fcn.004b7500
inc dword [ebp - 0x20]
mov edi, esi
shl edi, 2
lea edx, [ebp - 0x18]
add edi, dword [ebx + 0x390]
mov eax, dword [edi]
add eax, 0x58
call fcn.004b7744
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b7660
pop ecx
test cl, cl
je 0x49b1e4
mov eax, dword [ebx + 0x2e4]
mov eax, dword [eax + 0x20c]
mov edi, esi
mov edx, edi
call fcn.004617d8
mov dl, 1
call fcn.004611e0
mov eax, dword [ebx + 0x2e4]
mov edx, edi
mov eax, dword [eax + 0x20c]
call fcn.004617d8
mov ecx, 1
xor edx, edx
call fcn.004613e0
inc esi
lea eax, [ebx + 0x38c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
test ecx, ecx
jns 0x49b1f8
add ecx, 3
sar ecx, 2
cmp esi, ecx
jb 0x49b0e7
mov eax, ebx
call fcn.00443370
mov dword [ebx + 0x3c4], 1
mov eax, ebx
call fcn.0048c160
mov eax, ebx
call fcn.0048f8fc
lea edx, [ebx + 0x3cc]
push edx
push 0
push ebx
push 0x4917a8
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [ebx + 0x3d0], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x78]
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b7660
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret