Function at 0x10049ed2
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x4dc
lea ebp, [esp - 4]
mov eax, dword [0x10139d20]
xor eax, ebp
mov dword [ebp + 0x4dc], eax
push 0xdc
mov eax, 0x100ec4f8
call fcn.100773f7
mov edi, dword [ebp + 0x4e8]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x18]
call fcn.1001e584
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
call fcn.1001f8ec
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.100215f2
lea eax, [ebp + 0x94]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.1001b179
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10020812
push ebx
push 1
lea ecx, [ebp + 0x94]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.10001f70
cmp byte [ebp - 0xd], bl
lea ecx, [ebp - 0x54]
je 0x1004a26d
call fcn.10020cea
cmp eax, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jle 0x1004a221
mov esi, 0x206
push 0xc
call fcn.10054d4d
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
cmp edi, ebx
mov byte [ebp - 4], 3
je 0x10049fa1
mov ecx, edi
call fcn.10006179
jmp 0x10049fa3
xor edi, edi
push esi
lea eax, [ebp + 0x2d6]
push ebx
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
mov word [ebp + 0x2d4], bx
call fcn.10077be0
push esi
lea eax, [ebp + 0xce]
push ebx
push eax
mov word [ebp + 0xcc], bx
call fcn.10077be0
add esp, 0x18
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.100220ee
push eax
lea ecx, [ebp - 0x6c]
call fcn.10021e9c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.10021acc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.1004a4ca
jmp 0x1004a1ac
push 0x208
lea eax, [ebp + 0x2d4]
push ebx
push eax
call fcn.10077be0
push 0x208
lea eax, [ebp + 0xcc]
push ebx
push eax
call fcn.10077be0
add esp, 0x18
lea ecx, [ebp - 0x2c]
call fcn.1000c5bc
push eax
lea ecx, [ebp + 0xb0]
call fcn.10003c40
cmp dword [ebp + 0xc8], 0x10
mov eax, dword [ebp + 0xb4]
mov byte [ebp - 4], 6
jae 0x1004a067
lea eax, [ebp + 0xb4]
lea ecx, [ebp + 0x2d4]
push ecx
push eax
call fcn.10019511
cmp dword [ebp + 0xc8], 0x10
mov eax, dword [ebp + 0xb4]
pop ecx
pop ecx
jae 0x1004a08b
lea eax, [ebp + 0xb4]
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.100221fc
mov ecx, eax
call fcn.10020f0f
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 7
jb 0x1004a0b1
mov eax, dword [eax + 4]
jmp 0x1004a0b4
add eax, 4
lea ecx, [ebp + 0xcc]
push ecx
push eax
call fcn.10019511
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.10001f70
lea eax, [ebp + 0x2d4]
push eax
lea ecx, [ebp + 0x94]
call fcn.10001df0
lea eax, [ebp + 0xcc]
push eax
lea ecx, [ebp + 0x78]
mov byte [ebp - 4], 8
call fcn.10001df0
sub esp, 0x1c
lea eax, [ebp + 0x78]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
mov byte [ebp - 4], 9
call fcn.10003c90
sub esp, 0x1c
lea eax, [ebp + 0x94]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.10003c90
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 4], 9
call fcn.10043232
add esp, 0x3c
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xb
call fcn.10007edc
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb0]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.1000829e
lea ecx, [ebp - 0xa4]
call fcn.10042d72
lea ecx, [ebp - 0xe8]
call fcn.10042d72
push ebx
push 1
lea ecx, [ebp + 0x78]
call fcn.10001fc0
push ebx
push 1
lea ecx, [ebp + 0x94]
call fcn.10001fc0
push ebx
push 1
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 5
call fcn.10001f70
lea ecx, [ebp - 0x2c]
call fcn.1000ffd3
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.1004a4ca
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003f8a6
test al, al
je 0x1004a013
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
add ecx, 0x304
call fcn.10007912
cmp dword [ebp - 0x1c], 1
jne 0x1004a1fe
push ebx
push ebx
push edi
push 0x10049eb6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.10007851
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.10021706
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x10049f83
cmp dword [ebp - 0x1c], 1
jle 0x1004a26a
mov esi, dword [ebp - 0x24]
add esi, 0x304
mov ecx, esi
xor edi, edi
call fcn.1000586d
test eax, eax
jbe 0x1004a26a
push edi
mov ecx, esi
call fcn.1002a5de
mov eax, dword [eax]
push ebx
push ebx
push eax
push 0x10049eb6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
inc edi
call fcn.1000586d
cmp edi, eax
jb 0x1004a23d
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.10021706
lea ecx, [ebp]
call fcn.1001331e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4dc]
xor ecx, ebp
call fcn.100773e8
add ebp, 0x4e0
leave
ret 4