Function at 0x4997f8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x499800
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x499bd4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4a085c]
mov eax, dword [eax]
call fcn.00408598
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + 0x6cc]
call fcn.004576c8
mov eax, dword [edi + 0x704]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
call fcn.00486aa0
xor esi, esi
xor ebx, ebx
mov eax, esi
add eax, eax
lea eax, [eax + eax*2]
add eax, ebx
lea eax, [eax + eax*2]
mov edx, dword [0x4a0974]
mov eax, dword [edx + eax*4]
inc eax
lea edx, [ebp - 0x10]
call fcn.00408598
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebx + 1]
lea edx, [esi + esi*2]
mov eax, dword [edi + 0x6f0]
call fcn.004852f0
mov eax, esi
add eax, eax
lea eax, [eax + eax*2]
add eax, ebx
lea eax, [eax + eax*2]
mov edx, dword [0x4a0974]
mov eax, dword [edx + eax*4]
mov edx, dword [0x4a0aec]
mov eax, dword [edx + eax*8]
lea edx, [ebp - 0x14]
call fcn.00408598
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebx + 1]
lea edx, [esi + esi*2]
inc edx
mov eax, dword [edi + 0x6f0]
call fcn.004852f0
mov eax, esi
add eax, eax
lea eax, [eax + eax*2]
add eax, ebx
lea eax, [eax + eax*2]
mov edx, dword [0x4a0974]
mov eax, dword [edx + eax*4]
mov edx, dword [0x4a0aec]
movsx eax, word [edx + eax*8 + 4]
lea edx, [ebp - 0x18]
call fcn.00408598
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebx + 1]
lea edx, [esi + esi*2]
add edx, 2
mov eax, dword [edi + 0x6f0]
call fcn.004852f0
inc ebx
cmp ebx, 6
jne 0x499851
inc esi
cmp esi, 2
jne 0x49984f
mov ebx, 7
mov eax, dword [0x4a0850]
add eax, 4
mov word [eax], 0
add eax, 8
dec ebx
jne 0x499921
xor ebx, ebx
mov eax, dword [0x4a0850]
add eax, 4
mov dword [ebp - 8], eax
xor esi, esi
mov eax, dword [0x4a0aec]
add eax, 4
mov dword [ebp - 4], eax
mov edx, ebx
inc edx
mov eax, esi
inc eax
call fcn.00485848
test al, al
je 0x499961
mov eax, dword [ebp - 4]
mov ax, word [eax]
mov edx, dword [ebp - 8]
add word [edx], ax
inc esi
add dword [ebp - 4], 8
cmp esi, 0xc
jne 0x499946
inc ebx
add dword [ebp - 8], 8
cmp ebx, 7
jne 0x499939
lea edx, [ebp - 0x1c]
mov eax, dword [0x4a0850]
mov eax, dword [eax]
call fcn.00408598
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 8
mov edx, 1
call fcn.004852f0
lea edx, [ebp - 0x20]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 4]
call fcn.00408598
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 8
mov edx, 2
call fcn.004852f0
lea edx, [ebp - 0x24]
mov eax, dword [0x4a0850]
mov eax, dword [eax + 8]
call fcn.00408598
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 9
mov edx, 1
call fcn.004852f0
lea edx, [ebp - 0x28]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 0xc]
call fcn.00408598
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 9
mov edx, 2
call fcn.004852f0
lea edx, [ebp - 0x2c]
mov eax, dword [0x4a0850]
mov eax, dword [eax + 0x10]
call fcn.00408598
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 0xa
mov edx, 1
call fcn.004852f0
lea edx, [ebp - 0x30]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 0x14]
call fcn.00408598
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 0xa
mov edx, 2
call fcn.004852f0
lea edx, [ebp - 0x34]
mov eax, dword [0x4a0850]
mov eax, dword [eax + 0x18]
call fcn.00408598
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 0xb
mov edx, 1
call fcn.004852f0
lea edx, [ebp - 0x38]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 0x1c]
call fcn.00408598
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 0xb
mov edx, 2
call fcn.004852f0
lea edx, [ebp - 0x3c]
mov eax, dword [0x4a0850]
mov eax, dword [eax + 0x20]
call fcn.00408598
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 8
mov edx, 4
call fcn.004852f0
lea edx, [ebp - 0x40]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 0x24]
call fcn.00408598
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 8
mov edx, 5
call fcn.004852f0
lea edx, [ebp - 0x44]
mov eax, dword [0x4a0850]
mov eax, dword [eax + 0x28]
call fcn.00408598
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 9
mov edx, 4
call fcn.004852f0
lea edx, [ebp - 0x48]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 0x2c]
call fcn.00408598
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 9
mov edx, 5
call fcn.004852f0
lea edx, [ebp - 0x4c]
mov eax, dword [0x4a0850]
mov eax, dword [eax + 0x30]
call fcn.00408598
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 0xa
mov edx, 4
call fcn.004852f0
lea edx, [ebp - 0x50]
mov eax, dword [0x4a0850]
movsx eax, word [eax + 0x34]
call fcn.00408598
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [edi + 0x6f0]
mov ecx, 0xa
mov edx, 5
call fcn.004852f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499bdb
lea eax, [ebp - 0x50]
mov edx, 0x12
call fcn.00404424
ret