Function at 0x48b3b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a088a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x14], 1
jne 0x48b49f
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, 0x4b6304
lea esi, [esp + 0x1c]
xor edi, edi
call fcn.00411220
push ecx
mov ecx, esp
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], esp
push ecx
mov ecx, 0x4b6328
call fcn.00411220
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov dword [esp + 0x50], 0xffffffff
call fcn.004109f0
push eax
call fcn.0040f350
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b481
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 1
je 0x48b49f
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [ebx + 0x4c]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
mov dword [esp + 0x40], 1
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0xc]
mov byte [esp + 0x40], 2
test edx, edx
jne 0x48b4e1
xor eax, eax
jmp 0x48b4f5
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48b4e6
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.004114a0
lea edx, [esp + 0x14]
push edx
lea edi, [ebx + 0x2c]
call fcn.00415d20
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
cmp dword [ebx + 4], 0
mov dword [ebx + 0x10], 0
jne 0x48b575
lea edi, [ebx + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 4], 0
jne 0x48b572
push 0
push 0
push ebx
push 0x4160f0
push 0
push 0
call fcn.0044612f
add esp, 0x18
mov dword [ebx + 4], eax
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
mov dword [ebx + 0x10], edi
cmp byte [ebx + 9], 0
je 0x48b594
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x48b590
push eax
call esi
mov byte [ebx + 9], 0
mov dword [ebx + 0x10], edi
cmp byte [ebx + 9], 0
je 0x48b5ab
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x48b5a7
push eax
call esi
mov byte [ebx + 9], 0
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc