Function at 0x10005350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e838
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10013034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 0x58]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.Filename
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x100053d3
mov ecx, eax
movzx edi, cx
push edi
call fcn.10001980
add esp, 4
test eax, eax
je 0x100053e6
push eax
mov eax, edi
lea edi, [ebp - 0x14]
call fcn.10001590
jmp 0x100053e6
push str.Filename
lea edx, [ebp - 0x14]
push edx
mov ebx, 8
call fcn.10007ca0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov edi, esp
call fcn.10007d50
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [edi], eax
call fcn.10006590
mov edi, eax
lea eax, [ebp - 0x14]
add esi, 0x70
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.100074a0
mov ecx, dword [edi]
mov ebx, eax
mov edi, dword [ebx]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x1000546d
cmp dword [edi + 0xc], 0
jl 0x10005463
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10005463
call fcn.10007d50
mov dword [ebp - 0x20], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10005459
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x1000546d
push ecx
push ebx
mov ebx, dword [ecx - 0xc]
call fcn.10007ca0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005490
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100054b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x10005511
sub eax, 3
je 0x100054fc
dec eax
jne 0x10005526
push str.Tieba
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [eax + 5]
call fcn.10007ca0
jmp 0x1000552f
push str.Accelerator
lea edx, [ebp - 0x14]
push edx
mov ebx, 0xb
call fcn.10007ca0
jmp 0x1000552f
push str.User
lea eax, [ebp - 0x14]
push eax
mov ebx, 4
call fcn.10007ca0
jmp 0x1000552f
cmp ecx, 4
ja 0x10005726
mov ecx, dword [ebp + 0xc]
jmp dword [ecx*4 + 0x10005784]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000576f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc