Function at 0x817efc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov eax, edi
imul dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [0x816344]
call fcn.0081b178
mov dword [ebp - 0x2c], eax
xor edx, edx
push ebp
push 0x81853f
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x815558]
call fcn.004086d8
mov ebx, eax
push esi
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.00414060
push esi
push edi
lea esi, [ebp - 0x90]
lea edi, [ebx + 0x10]
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 dword [ebp - 0x34], ebx
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
add eax, 4
call fcn.0050e4c0
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x80]
cmp dword [eax], 0
je 0x8180d4
mov dl, 1
mov eax, dword [0x815400]
call fcn.00817ec4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
add eax, 4
call fcn.0050e4c0
mov eax, edi
add eax, eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], eax
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x30]
movzx edx, byte [0x818550]
mov byte [eax + 0x36], dl
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x818067
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [0x4122e4]
call fcn.0040d1dc
push 1
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4122e4]
call fcn.0040d0b8
add esp, 4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x80]
mov edx, dword [edx]
call fcn.0040a90c
lea edx, [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x30]
add eax, 0x30
mov ecx, dword [0x4122e4]
call fcn.0040d220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81806e
lea eax, [ebp - 4]
mov edx, dword [0x4122e4]
call fcn.0040d1dc
pop eax
jmp eax
mov eax, dword [ebp - 0x80]
cmp dword [eax + 4], 0
je 0x818331
mov dl, 1
mov eax, dword [0x815400]
call fcn.00817ec4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
add eax, 4
call fcn.0050e4c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
add eax, eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x30]
movzx edx, byte [0x818550]
mov byte [eax + 0x36], dl
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x8181a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x4122e4]
call fcn.0040d1dc
push 1
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4122e4]
call fcn.0040d0b8
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x80]
mov edx, dword [edx + 4]
call fcn.0040a90c
lea edx, [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x30]
add eax, 0x30
mov ecx, dword [0x4122e4]
call fcn.0040d220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8181ae
lea eax, [ebp - 8]
mov edx, dword [0x4122e4]
call fcn.0040d1dc
pop eax
jmp eax
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0xc], 0
je 0x818470
mov dl, 1
mov eax, dword [0x815400]
call fcn.00817ec4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x2c]
add eax, 4
call fcn.0050e4c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
add eax, eax
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x30]
movzx edx, byte [0x818550]
mov byte [eax + 0x36], dl
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x818404
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, dword [0x4122e4]
call fcn.0040d1dc
push 1
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4122e4]
call fcn.0040d0b8
add esp, 4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x80]
mov edx, dword [edx + 0xc]
call fcn.0040a90c
lea edx, [ebp - 0x10]
mov edx, dword [edx]
mov eax, dword [ebp - 0x30]
add eax, 0x30
mov ecx, dword [0x4122e4]
call fcn.0040d220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81840b
lea eax, [ebp - 0x10]
mov edx, dword [0x4122e4]
call fcn.0040d1dc
pop eax
jmp eax
mov dl, 1
mov eax, dword [0x815558]
call fcn.004086d8
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
call fcn.00414060
lea esi, [ebp - 0x90]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], ebx
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x2c]
add eax, 4
call fcn.0050e4c0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
cmp eax, 2
jle 0x8184fc
mov esi, eax
dec esi
test esi, esi
jl 0x818527
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
cmp eax, ebx
ja 0x8184e5
call fcn.0050c474
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov edx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
call fcn.00817c80
inc ebx
dec esi
jne 0x8184d6
jmp 0x818527
mov esi, eax
dec esi
test esi, esi
jl 0x818527
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
cmp eax, ebx
ja 0x818515
call fcn.0050c474
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
call fcn.00408708
inc ebx
dec esi
jne 0x818506
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x818546
mov eax, dword [ebp - 0x2c]
call fcn.00408708
pop eax
jmp eax