Function at 0x499f50
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, 0x4cd17c
call fcn.004aad94
mov dword [ebp - 0x20], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.004b4e10
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.00449410
xor ecx, ecx
mov dword [ebx + 0x3c4], ecx
mov byte [ebx + 0x3bc], 0
mov byte [ebx + 0x3fc], 1
cmp byte [ebx + 0x375], 0
je 0x49a002
mov word [ebp - 0x2c], 0x14
push 3
lea eax, [ebp - 4]
push eax
call fcn.004b4d54
add esp, 8
lea eax, [ebp - 4]
call fcn.004b5140
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
add edx, 2
mov dl, byte [edx]
call fcn.004b4ea8
inc dword [ebp - 0x20]
call fcn.004b5440
mov dword [ebx + 0x3b0], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b4f38
jmp 0x49a04a
mov word [ebp - 0x2c], 0x20
push 2
lea ecx, [ebp - 4]
push ecx
call fcn.004b4d54
add esp, 8
lea eax, [ebp - 4]
call fcn.004b5140
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
inc edx
mov dl, byte [edx]
call fcn.004b4ea8
inc dword [ebp - 0x20]
call fcn.004b5440
mov dword [ebx + 0x3b0], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b4f38
mov word [ebp - 0x2c], 0x2c
mov edx, 0x4c7184
lea eax, [ebp - 0x10]
call fcn.004b4e10
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov eax, ebx
call fcn.00491914
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.004b4f38
pop ecx
test cl, cl
je 0x49a099
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0048373c
jmp 0x49a24b
mov eax, ebx
call fcn.0048b5f8
test al, al
jne 0x49a0d0
mov edx, dword [0x4d72e4]
mov eax, dword [edx]
call fcn.0043fa00
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b4f38
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
jmp 0x49a265
mov eax, ebx
call fcn.0048bbc0
mov eax, ebx
call fcn.0048bd40
mov word [ebp - 0x2c], 8
xor esi, esi
jmp 0x49a1e9
mov word [ebp - 0x2c], 0x38
mov edx, 0x4c6b2a
lea eax, [ebp - 0x14]
call fcn.004b4dd8
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, 0x50
call fcn.004b501c
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b4f38
pop ecx
test cl, cl
je 0x49a169
mov eax, dword [ebx + 0x2e4]
mov eax, dword [eax + 0x20c]
mov edi, esi
mov edx, edi
call fcn.0045acd0
xor edx, edx
call fcn.0045a6d8
mov eax, dword [ebx + 0x2e4]
mov edx, edi
mov eax, dword [eax + 0x20c]
call fcn.0045acd0
xor ecx, ecx
xor edx, edx
call fcn.0045a8d8
jmp 0x49a1e8
mov word [ebp - 0x2c], 0x44
mov edx, 0x4c6b2c
lea eax, [ebp - 0x18]
call fcn.004b4dd8
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, 0x50
call fcn.004b501c
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b4f38
pop ecx
test cl, cl
je 0x49a1e8
mov eax, dword [ebx + 0x2e4]
mov eax, dword [eax + 0x20c]
mov edi, esi
mov edx, edi
call fcn.0045acd0
mov dl, 1
call fcn.0045a6d8
mov eax, dword [ebx + 0x2e4]
mov edx, edi
mov eax, dword [eax + 0x20c]
call fcn.0045acd0
mov ecx, 1
xor edx, edx
call fcn.0045a8d8
inc esi
lea eax, [ebx + 0x38c]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
test ecx, ecx
jns 0x49a1fc
add ecx, 3
sar ecx, 2
cmp esi, ecx
jb 0x49a0eb
mov eax, ebx
call fcn.0043c868
mov dword [ebx + 0x3c4], 1
mov eax, ebx
call fcn.0048adc4
mov eax, ebx
call fcn.0048e540
lea edx, [ebx + 0x3cc]
push edx
push 0
push ebx
push 0x4903a4
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.004b4f38
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret