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

Disassembly:
push 0xffffffffffffffff
push 0x1016f742
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.10033b60
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ebp + 8], ecx
mov dword [ebp], 0x10186208
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.1004d1c0
mov esi, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x3c], 0x10186784
mov edi, 0x1018458c
push ecx
mov dword [ebp + 0x40], edi
call esi
mov byte [ebp + 0x5c], 0
lea edx, [ebp + 0x68]
mov dword [ebp + 0x60], 0x10186784
push edx
mov dword [ebp + 0x64], edi
call esi
mov al, byte [esp + 0x54]
mov byte [ebp + 0x80], al
lea ecx, [ebp + 0x8c]
mov dword [ebp + 0x84], 0x10186784
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.10005a20
mov ecx, dword [esp + 0x4c]
mov dword [ebp + 0x158], ecx
lea ecx, [ebp + 0x160]
mov byte [esp + 0x20], 6
call fcn.1002b6f0
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.10149d08
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 0x1006462b
cmp esi, 4
je 0x1006462b
cmp esi, 5
je 0x100645df
cmp esi, 6
je 0x100645df
cmp esi, 7
je 0x1006458c
cmp esi, 8
jne 0x10064681
push 0x138
call fcn.1014979e
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
mov byte [esp + 0x20], 0xa
je 0x10064677
mov edx, dword [esp + 0x50]
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.10081fc0
jmp 0x10064679
push 0x230
call fcn.1014979e
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
mov byte [esp + 0x20], 9
je 0x10064677
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x34]
push 0
push ecx
mov ecx, dword [ebp + 4]
push esi
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x54]
push edx
lea edx, [ebp + 0xc]
push edx
push ecx
push ebp
mov ecx, eax
call fcn.1005bb20
jmp 0x10064679
push 0x230
call fcn.1014979e
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
mov byte [esp + 0x20], 8
je 0x10064677
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
push 1
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
mov edx, dword [esp + 0x54]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push edx
push ebp
mov ecx, eax
call fcn.1005bb20
jmp 0x10064679
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.1002cb70
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x100646ac
lea esi, [ebp + 0x44]
push esi
call edi
push esi
mov byte [ebp + 0x5c], 1
call ebx
mov eax, ebp
mov dword [ebp + 0x15c], 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 0x30