Function at 0x4eb790
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x58c2b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
mov dword [esp + 0x24], 1
lea ecx, [esi + 0x1c]
jae 0x4eb7d7
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x14]
push eax
xor ebx, ebx
push ebx
call fcn.00405230
test eax, eax
jne 0x4eb84e
cmp dword [esp + 0x60], ebp
mov eax, dword [esp + 0x4c]
jae 0x4eb7fb
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esi + 0x14]
push ecx
push eax
push edx
push ebx
mov ecx, esi
call fcn.00405230
test eax, eax
jne 0x4eb84e
cmp dword [esp + 0x44], ebp
jb 0x4eb824
mov eax, dword [esp + 0x30]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x4eb847
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0055215c
add esp, 4
xor eax, eax
jmp 0x4eb9af
cmp dword [esi + 0x30], ebx
je 0x4eb8cb
mov ecx, esi
call fcn.004e9140
push 3
mov ecx, esi
call fcn.004e9ed0
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x98]
push edi
call ebx
lea ecx, [esi + 0xb8]
call fcn.004e60a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebp, [esi + 0x68]
push ebp
call ebx
mov ebx, dword [esi + 0x40]
cmp dword [esi + 0x3c], ebx
lea edi, [esi + 0x38]
jbe 0x4eb89a
call fcn.005532de
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x14], eax
jbe 0x4eb8af
call fcn.005532de
mov eax, dword [esp + 0x14]
push ebx
push edi
push eax
push edi
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.004e6dc0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
lea ebp, [ebx + 0x10]
mov ecx, esi
call fcn.004e4a00
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0x1c]
call fcn.0040a080
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.0040a080
mov ecx, esi
call fcn.004eaf60
push 9
push ebx
push str.noaccount
lea ecx, [esp + 0x38]
xor edi, edi
call fcn.004050c0
test eax, eax
jne 0x4eb92f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x61a8
mov dword [esi + 0xb4], eax
jbe 0x4eb935
add eax, 0xffff9e58
mov dword [esi + 0xb4], eax
jmp 0x4eb935
mov dword [esi + 0xb4], ebx
mov ecx, esi
mov byte [esi + 0xcc], 0
call fcn.004e5460
test al, al
je 0x4eb976
push ebx
push ebx
push esi
push 0x4eb5b0
push ebx
push ebx
call fcn.00555225
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xd0], eax
mov ecx, esi
jne 0x4eb96c
call fcn.004e4a00
jmp 0x4eb976
mov edi, 1
call fcn.004e9340
cmp dword [esp + 0x44], ebp
jb 0x4eb989
mov edx, dword [esp + 0x30]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], 0
jb 0x4eb9ad
mov eax, dword [esp + 0x4c]
push eax
call fcn.0055215c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x38