Function at 0x458c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48bb68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.00454f30
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jne 0x458c74
mov eax, 0x80004005
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xffffffffffffffff
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x458c91
cmp eax, 0x80
jne 0x458c96
mov byte [esp + 0x28], 1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x3c], 0
call fcn.00405d00
add esp, 4
mov byte [esp + 0x38], 1
mov edi, dword [esp + 0x14]
mov ebx, dword [edi - 0xc]
test ebx, ebx
jle 0x458d13
lea eax, [ebx - 1]
test eax, eax
jl 0x458d6e
cmp eax, ebx
jg 0x458d6e
movzx eax, word [edi + eax*2]
cmp ax, 0x5c
je 0x458d13
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x458cfb
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00416110
mov edi, dword [esp + 0x14]
test esi, esi
mov word [edi + ebx*2], 0x5c
jl 0x458d6e
cmp esi, dword [edi - 8]
jg 0x458d6e
mov dword [edi - 0xc], esi
mov word [edi + esi*2], 0
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x38], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x402
or eax, ecx
jge 0x458d54
mov ecx, 0x402
lea eax, [esp + 0x10]
call fcn.00416110
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test esi, esi
jne 0x458d78
xor eax, eax
jmp 0x458d91
push 0x80070057
call fcn.00416be0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458d80
sub eax, edx
sar eax, 1
js 0x458d6e
cmp eax, dword [esi - 8]
jg 0x458d6e
push 0x2e
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], 0
call fcn.00443c80
push 0x2e
push 0x2f
lea edx, [esp + 0x18]
push edx
call fcn.00443c80
push 7
push str.swl.dat
lea eax, [esp + 0x18]
push eax
call fcn.004164c0
push 0x3c8
push 0x4a2424
lea edi, [esp + 0x18]
call fcn.00426b90
mov esi, dword [esp + 0x18]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
add esp, 8
or eax, ecx
jge 0x458e09
mov ecx, edi
lea eax, [esp + 0x10]
call fcn.00416110
mov esi, dword [esp + 0x10]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.0046c45f
add esp, 8
test edi, edi
jl 0x458d6e
cmp edi, dword [esi - 8]
jg 0x458d6e
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x18]
add ebx, 8
push edx
mov dword [esi - 0xc], edi
mov eax, 0x12d000
mov ecx, esi
mov edx, ebx
mov word [esi + edi*2], 0
mov dword [esp + 0x1c], 0
call fcn.00441e20
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x458efd
cmp dword [esp + 0x18], 0
mov edi, dword [ebx]
jne 0x458ed7
test edi, edi
je 0x458e9d
lea eax, [edi + 0xa17c]
test eax, eax
mov dword [edi], 0x12d000
mov dword [edi + 4], 0x285b
je 0x458e83
sub eax, edi
push 0xa16c
lea ecx, [edi + 0x10]
push 0
push ecx
mov dword [edi + 8], eax
call fcn.0046ea20
add esp, 0xc
mov byte [edi + 0xc], 1
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00458ff0
cmp dword [edi + 0x28], 0
jne 0x458efd
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push edx
push 0
push edi
push 0x459080
push 0
mov byte [edi + 0x2c], 0
push 0
mov byte [eax + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [edi + 0x28], eax
jne 0x458efd
jmp 0x458ef7
cmp dword [ebp + 0xc], 0
je 0x458efd
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00458ff0
mov eax, dword [ebx]
mov byte [edi + 0x2c], 0
push edi
mov byte [eax + 0xc], 0
call fcn.004590a0
mov ebx, dword [ebx]
mov byte [ebx + 0xc], 1
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov byte [esp + 0x38], 1
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458f1e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x28], 0
je 0x458f55
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8