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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x657881
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea ebx, [ebp - 0x64]
xor eax, eax
push ebp
push 0x657b5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov edx, edi
mov eax, esi
call fcn.0065743c
lea ecx, [ebp - 0xc]
mov edx, edi
mov eax, esi
call fcn.006575c8
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
call 0x42022c
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
call fcn.005d6210
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], esi
mov edx, dword [ebp - 0x70]
mov esi, dword [eax]
call dword [esi + 0x38]
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x20]
call 0x42022c
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x78]
call fcn.005d6210
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x70], esi
mov edx, dword [ebp - 0x70]
mov esi, dword [eax]
call dword [esi + 0x38]
lea eax, [ebp - 0x7c]
call fcn.005d6210
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov esi, dword [eax]
call dword [esi + 0x38]
mov edx, ebx
mov eax, 0x680350
mov ecx, 8
call fcn.00406c04
mov dword [ebx + 8], 3
mov eax, dword [ebp - 8]
test eax, eax
je 0x65794e
sub eax, 4
mov eax, dword [eax]
mov word [ebx + 0xc], ax
mov dword [ebx + 0x10], 0x40
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x657965
sub eax, 4
mov eax, dword [eax]
mov word [ebx + 0x14], ax
movzx eax, word [ebx + 0xc]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x65797f
sub eax, 4
mov eax, dword [eax]
mov word [ebx + 0x1c], ax
movzx eax, word [ebx + 0x14]
add eax, dword [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x657999
sub eax, 4
mov eax, dword [eax]
mov word [ebx + 0x24], ax
movzx eax, word [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x6579b3
sub eax, 4
mov eax, dword [eax]
mov word [ebx + 0x2c], ax
movzx eax, word [ebx + 0x24]
add eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], 0
movzx eax, word [ebx + 0x24]
movzx edx, word [ebx + 0x2c]
add eax, edx
mov dword [ebx + 0x38], eax
mov eax, dword [0x68034c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 8]
call 0x5d644c
mov dword [ebx + 8], eax
movzx eax, word [ebx + 0xc]
call 0x5d6448
mov esi, eax
mov word [ebx + 0xc], si
mov word [ebx + 0xe], si
mov eax, dword [ebx + 0x10]
call 0x5d644c
mov dword [ebx + 0x10], eax
movzx eax, word [ebx + 0x14]
call 0x5d6448
mov esi, eax
mov word [ebx + 0x14], si
mov word [ebx + 0x16], si
mov eax, dword [ebx + 0x18]
call 0x5d644c
mov dword [ebx + 0x18], eax
movzx eax, word [ebx + 0x1c]
call 0x5d6448
mov esi, eax
mov word [ebx + 0x1c], si
mov word [ebx + 0x1e], si
mov eax, dword [ebx + 0x20]
call 0x5d644c
mov dword [ebx + 0x20], eax
movzx eax, word [ebx + 0x24]
call 0x5d6448
mov esi, eax
mov word [ebx + 0x24], si
mov word [ebx + 0x26], si
mov eax, dword [ebx + 0x28]
call 0x5d644c
mov dword [ebx + 0x28], eax
movzx eax, word [ebx + 0x2c]
call 0x5d6448
mov esi, eax
mov word [ebx + 0x2c], si
mov word [ebx + 0x2e], si
mov eax, dword [ebx + 0x30]
call 0x5d644c
mov dword [ebx + 0x30], eax
movzx eax, word [ebx + 0x34]
call 0x5d6448
mov esi, eax
mov word [ebx + 0x34], si
mov word [ebx + 0x36], si
mov eax, dword [ebx + 0x38]
call 0x5d644c
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x3c]
call 0x5d644c
mov dword [ebx + 0x3c], eax
lea ecx, [ebp - 4]
mov eax, ebx
mov edx, 0x40
call 0x5d8460
push 0xffffffffffffffff
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 8]
call 0x5d895c
push 0xffffffffffffffff
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call 0x5d895c
push 0xffffffffffffffff
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call 0x5d895c
push 0xffffffffffffffff
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call 0x5d895c
push 0xffffffffffffffff
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call 0x5d895c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [0x622364]
call 0x6216f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x657b63
lea eax, [ebp - 0x7c]
mov edx, dword [0x5d25c0]
mov ecx, 2
call 0x40ac28
lea eax, [ebp - 0x74]
call fcn.00409750
lea eax, [ebp - 0x6c]
call fcn.0040d050
lea eax, [ebp - 0x68]
call fcn.00409750
lea eax, [ebp - 0x18]
mov edx, dword [0x5d255c]
mov ecx, 6
call 0x40ac28
ret