Function at 0x6815f8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x681601
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x681897
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x681224]
call fcn.00407f8c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x681643
sub edx, 0xfffffff8
call fcn.0040e038
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], edi
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x28], edx
mov edx, dword [ebp + 0x28]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x40], edx
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x24]
add eax, 0x48
mov edx, dword [ebp - 0x20]
call fcn.0040e038
mov eax, dword [ebp - 0x24]
cmp ebx, dword [eax + 0x30]
jl 0x6816b5
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea eax, [ebp - 0x44]
call fcn.00441bbc
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
add eax, 8
call fcn.004390d8
jmp 0x681861
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x34], ebx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x38], 0
jg 0x6816ce
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x8b1cd0]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [0x8b1cd0]
mov eax, dword [eax]
shl eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [0x8b1cd0]
mov eax, dword [eax]
dec eax
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x24]
push esi
add edi, 0xc
lea esi, [ebp - 0x34]
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 esi
mov dl, 1
mov eax, dword [0x6772d0]
call fcn.00687c44
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x24]
add eax, 0x20
mov edx, esi
call fcn.0040e038
mov eax, dword [ebp - 0x24]
add eax, 0x1c
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x48]
call fcn.0040e038
xor ecx, ecx
push ebp
push 0x68185a
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
sub eax, ebx
mov edx, dword [0x8b1cd0]
mov edx, dword [edx]
add edx, edx
cmp eax, edx
jle 0x681760
mov ebx, edx
jmp 0x681762
mov ebx, eax
push 0
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x681770
sub eax, 0xffffffb4
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push ebx
movzx eax, byte [0x6818a8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x677558]
call fcn.00684598
mov edx, eax
test edx, edx
je 0x681797
sub edx, 0xffffffbc
lea eax, [ebp - 0x18]
call fcn.0040e038
xor eax, eax
push ebp
push 0x6817e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x48]
or edx, 0xffffffff
mov ecx, dword [eax]
call dword [ecx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6817ee
mov eax, dword [ebp - 0x24]
add eax, 0x20
call fcn.0040e020
mov eax, dword [ebp - 0x24]
add eax, 0x1c
call fcn.0040e020
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68189e
lea eax, [ebp - 0x58]
call fcn.0043881c
lea eax, [ebp - 0x48]
call fcn.0040e020
lea eax, [ebp - 0x44]
call fcn.0043881c
lea eax, [ebp - 0x1c]
call fcn.0040e020
lea eax, [ebp - 0x18]
call fcn.0040e020
ret