Function at 0x1005d240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10180c02
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.1002acb0
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ebp + 8], ecx
mov dword [ebp], 0x10198540
mov dword [ebp + 4], eax
lea edi, [ebp + 0xc]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
push edx
lea ecx, [ebp + 0x30]
push eax
mov dword [esp + 0x28], 0
call fcn.10043420
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x3c], 0x10198870
mov edi, 0x101975e4
push ecx
mov dword [ebp + 0x40], edi
call esi
mov byte [ebp + 0x5c], 0
lea edx, [ebp + 0x68]
mov dword [ebp + 0x60], 0x10198870
push edx
mov dword [ebp + 0x64], edi
call esi
mov al, byte [esp + 0x58]
mov byte [ebp + 0x80], al
lea ecx, [ebp + 0x8c]
mov dword [ebp + 0x84], 0x10198870
push ecx
mov dword [ebp + 0x88], edi
call esi
mov edx, dword [esp + 0x28]
lea eax, [ebp + 0xb4]
mov dword [ebp + 0xac], edx
push eax
mov dword [ebp + 0xb0], edi
call esi
lea esi, [ebp + 0xd0]
mov ecx, esi
call fcn.10034320
mov ecx, dword [esp + 0x4c]
mov dword [ebp + 0x160], ecx
lea ecx, [ebp + 0x168]
mov byte [esp + 0x20], 6
call fcn.10030690
mov cl, byte [esp + 0x48]
mov dword [esi], 0
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0xd8], edx
mov ax, word [ebx + 0x10]
push 0
mov byte [esp + 0x24], 7
mov word [ebp + 0xdc], ax
mov byte [ebp + 0xfc], cl
call fcn.1015812a
add esp, 4
mov dword [ebp + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebp + 0x8c]
push esi
mov ebx, eax
call edi
mov dword [ebp + 0xa4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov esi, dword [esp + 0x44]
cmp esi, 3
je 0x1005d474
cmp esi, 4
je 0x1005d474
cmp esi, 5
je 0x1005d41f
cmp esi, 6
je 0x1005d41f
cmp esi, 7
je 0x1005d3cc
cmp esi, 8
jne 0x1005d4cf
push 0x140
call fcn.101582b6
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x20], 0xa
je 0x1005d4c5
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
push 0
push edx
mov edx, dword [ebp + 4]
push esi
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push ecx
lea edx, [ebp + 0xc]
push edx
mov edx, dword [esp + 0x5c]
push edx
push ebp
mov ecx, eax
call fcn.1008a210
jmp 0x1005d4c7
push 0x2f0
call fcn.101582b6
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x20], 9
je 0x1005d4c5
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x38]
push 0
push edx
mov edx, dword [ebp + 4]
push esi
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push ecx
lea edx, [ebp + 0xc]
push edx
mov edx, dword [esp + 0x60]
push edx
push ebp
mov ecx, eax
call fcn.1004f5a0
jmp 0x1005d4c7
push 0x2f0
call fcn.101582b6
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x20], 8
je 0x1005d4c5
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x38]
push 1
push edx
mov edx, dword [ebp + 4]
push esi
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x58]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push edx
push ebp
mov ecx, eax
call fcn.1004f5a0
jmp 0x1005d4c7
xor eax, eax
mov byte [esp + 0x20], 7
mov dword [ebp + 0x2c], eax
mov ecx, dword [ebp + 0xac]
lea eax, [ebp + 0x30]
push eax
push ebp
call fcn.100231a0
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x1005d4fa
lea esi, [ebp + 0x44]
push esi
call edi
push esi
mov byte [ebp + 0x5c], 1
call ebx
mov eax, ebp
mov dword [ebp + 0x164], 0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x34