Function at 0x490c78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x490c80
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404eec
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
xor eax, eax
push ebp
push 0x491122
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
mov edx, dword [eax + 0x5c0]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00404d48
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x487a78]
call fcn.00487af4
mov ebx, eax
mov edx, 0x491138
mov eax, ebx
call fcn.00487fe0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x491138
mov eax, ebx
call fcn.00487f2c
mov edx, dword [ebx + 0x164]
mov edx, dword [edx + eax*8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [esi]
mov eax, dword [eax + 0xf30]
call fcn.00405888
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
inc eax
push eax
mov eax, dword [esi]
add eax, 0xf30
mov ecx, 1
mov edx, dword [0x48f254]
call fcn.00405a44
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + 0xf30]
lea eax, [edx + eax*4 + 0x1c]
mov edx, dword [ebp - 4]
call fcn.00404a90
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x49114c
call fcn.00416598
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4]
call fcn.00404a90
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x49115c
call fcn.00416598
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 4]
call fcn.00404a90
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x491170
call fcn.00416598
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004089e8
mov eax, dword [ebp - 0x14]
call fcn.00408c24
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
mov dword [ecx + edx*4 + 0x18], eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x491184
call fcn.00416598
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 8]
call fcn.00404a90
lea ecx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x491198
call fcn.00416598
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 0xc]
call fcn.00404a90
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x4911b0
call fcn.00416598
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 0x10]
call fcn.00404a90
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x4911c8
call fcn.00416598
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 0x14]
call fcn.00404a90
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x4911e0
call fcn.00416598
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 0x20]
call fcn.00404a90
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x4911f4
call fcn.00416598
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 0x24]
call fcn.00404a90
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x49120c
call fcn.00416598
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
lea eax, [ecx + eax*4 + 0x28]
call fcn.00404a90
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + 0xf30]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0xc]
mov dword [edx + eax*4 + 0x60], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + 0xf30]
mov edx, dword [edx + eax*4 + 0x14]
mov eax, ebx
call fcn.00487fe0
mov dl, 1
mov eax, dword [0x470098]
call fcn.004727d4
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + 0xf30]
mov edx, dword [edx + eax*4 + 0x14]
mov eax, ebx
call fcn.00487f2c
mov edx, dword [ebx + 0x164]
mov edx, dword [edx + eax*8]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 0x344]
mov eax, dword [eax + 0x34]
call fcn.0046a3cc
mov eax, dword [eax + 0x20]
call fcn.004215d0
mov edx, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x344]
mov eax, dword [eax + 0x34]
call fcn.0046a5c8
mov eax, dword [edi]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00413a18
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + 0xf30]
push esi
push edi
lea esi, [ebp - 0x44]
lea edi, [edx + eax*4 + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [edi]
call fcn.00403cec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x491224
mov eax, ebx
call fcn.00487fe0
mov edx, 0x491224
mov eax, ebx
call fcn.00487f2c
mov edx, dword [ebx + 0x164]
mov edx, dword [edx + eax*8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x4910c3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + 0xf30]
mov dword [edx + eax*4 + 0x5c], 0x3e8
jmp 0x4910f6
lea ecx, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.00408c24
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xf30]
mov dword [ecx + edx*4 + 0x5c], eax
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491129
lea eax, [ebp - 0x48]
call fcn.00404a3c
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00404a60
ret