Function at 0x485460
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4eb826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
xor eax, eax
mov ax, word [ebp]
mov dword [esp + 0x10], ecx
xor ebx, ebx
test ax, ax
push esi
mov ecx, ebp
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebx
je 0x4854ce
cmp ax, 9
jb 0x4854ad
cmp ax, 0xd
jbe 0x4854ca
cmp ax, 0x20
je 0x4854ca
cmp ax, 0x24
jne 0x4854be
mov ebx, 1
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4854a1
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
push eax
call fcn.00443850
mov esi, dword [esp + 0x14]
add esp, 4
cmp word [esi], 0x2d
jne 0x485683
lea esp, [esp]
mov eax, esi
mov ecx, str._wait
mov edx, 4
lea esp, [esp]
movzx edi, word [eax]
movsx ebp, byte [ecx]
or edi, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, edi
jne 0x48559b
dec edx
jns 0x485500
mov ax, word [eax]
cmp ax, 9
jb 0x48552a
cmp ax, 0xd
jbe 0x485535
cmp ax, 0x20
je 0x485535
test ax, ax
jne 0x48559b
mov edx, esi
mov ecx, 0x200020
mov dword [edx], ecx
mov dword [edx + 4], ecx
add esi, 0xa
mov word [edx + 8], cx
mov dword [esp + 0x10], esi
je 0x48558e
mov edi, edi
mov ax, word [esi]
cmp ax, 9
jb 0x48555f
cmp ax, 0xd
jbe 0x485565
cmp ax, 0x20
jne 0x48556a
add esi, 2
jmp 0x485550
mov dword [esp + 0x10], esi
mov edi, edi
mov ax, word [esi]
cmp ax, 9
jb 0x48557f
cmp ax, 0xd
jbe 0x485585
cmp ax, 0x20
jne 0x48558a
add esi, 2
jmp 0x485570
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 1
jmp 0x485672
push 4
push esi
push str._exp
call fcn.00444970
add esp, 0xc
test al, al
je 0x485607
mov ecx, esi
mov eax, 0x200020
mov dword [ecx], eax
add esi, 8
mov dword [ecx + 4], eax
mov dword [esp + 0x10], esi
je 0x485600
mov ax, word [esi]
cmp ax, 9
jb 0x4855d3
cmp ax, 0xd
jbe 0x4855d9
cmp ax, 0x20
jne 0x4855de
add esi, 2
jmp 0x4855c4
mov dword [esp + 0x10], esi
mov ax, word [esi]
cmp ax, 9
jb 0x4855f1
cmp ax, 0xd
jbe 0x4855f7
cmp ax, 0x20
jne 0x4855fc
add esi, 2
jmp 0x4855e2
mov dword [esp + 0x10], esi
mov ebx, 1
jmp 0x485672
push 5
push esi
push str._link
call fcn.00444970
add esp, 0xc
test al, al
je 0x485631
lea edx, [esp + 0x10]
add esi, 0xa
push edx
mov dword [esp + 0x14], esi
call fcn.00443850
add esp, 4
jmp 0x48566e
mov eax, str.__st:
mov ecx, 4
jmp 0x485640
movzx edx, word [esi]
movsx edi, byte [eax]
or edx, 0x20
or edi, 0x20
add esi, 2
inc eax
cmp edi, edx
jne 0x485657
dec ecx
jns 0x485640
lea eax, [esp + 0x10]
push eax
call fcn.00417de5
lea ecx, [esp + 0x14]
push ecx
call fcn.00443850
add esp, 8
mov esi, dword [esp + 0x10]
cmp word [esi], 0x2d
je 0x4854f0
mov ebp, dword [esp + 0xb8]
lea edx, [esp + 0x10]
push edx
call fcn.00443850
mov edi, dword [esp + 0x14]
mov ax, word [edi]
xor esi, esi
add esp, 4
cmp ax, si
je 0x485727
mov dword [esp + 0x14], esi
cmp ebx, esi
mov dword [esp + 0xb0], esi
je 0x485731
mov ecx, dword [esp + 0x18]
push 1
push esi
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00452ca0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0xbc], ecx
call fcn.00443850
mov ebp, dword [esp + 0xbc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebp
call fcn.00417de5
lea ecx, [esp + 0x18]
push ecx
call fcn.00443850
mov edi, dword [esp + 0x1c]
mov ax, word [edi]
add esp, 0xc
cmp ax, si
jne 0x485731
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x485727
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0x80070057
jmp 0x4858e9
xor ebx, ebx
cmp ax, 0x2d
mov esi, 0x100000
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov cl, 0x2a
jne 0x48574a
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
jne 0x4857a6
movzx edx, word [edi + 2]
cmp ecx, edx
jne 0x4857a6
push 3
lea eax, [edi + 4]
push eax
push 0x4face4
call fcn.004449d0
add esp, 0xc
test al, al
je 0x4857a6
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
add edi, 0xa
push edx
mov dword [esp + 0x18], edi
call fcn.0044f5a0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 8
add esi, 0x1fff
adc eax, ebx
and esi, 0xffffe000
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
push 0x51d5c4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], 0x51d5c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x38]
push eax
push 0x10000
lea ecx, [esp + 0x30]
push ecx
push 0x484f50
push esi
push ebx
mov byte [esp + 0xc8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x485821
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x48581d
mov eax, 1
mov ebx, eax
jmp 0x485853
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 0x270f
lea esp, [esp]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x485853
push 0
call esi
dec ebp
jns 0x485830
mov eax, dword [esp + 0x34]
test eax, eax
je 0x485853
push 1
call esi
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x485847
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
lea eax, [esp + 0x48]
push 0x4f93cc
push eax
call esi
mov ebp, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push str.__LastTID
mov ecx, ebp
call fcn.00448be0
push 0x51d5c4
mov byte [esp + 0xb4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4858a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4858cc
test edi, edi
je 0x4858cc
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x48]
push str.__ncd__d
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.0043547e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4858e7
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret 8