Function at 0x819cec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x21
push 0
push 0
dec ecx
jne 0x819cf5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x81ac79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x819b14]
call fcn.004086d8
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x94]
test edx, edx
je 0x819d3b
sub edx, 0xfffffff8
call fcn.0040ee10
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
sar eax, 1
jns 0x819d4d
adc eax, 0
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00749270
dec eax
pop edx
sub eax, edx
jl 0x81aada
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.007492c4
mov dword [ebp - 0x50], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
xor ecx, ecx
mov edx, 0x81ac98
mov eax, dword [ebp - 0x50]
call fcn.0075209c
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x81aace
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jne 0x81aada
push 0
push 1
xor ecx, ecx
mov edx, 0x81acac
mov eax, dword [ebp - 0x50]
call fcn.0075209c
dec eax
mov dword [ebp - 0x34], eax
push 0
push 0xff
xor ecx, ecx
mov edx, 0x81acc0
mov eax, dword [ebp - 0x50]
call fcn.0075209c
mov dword [ebp - 0x38], eax
push 0
push 0x14
xor ecx, ecx
mov edx, 0x81acdc
mov eax, dword [ebp - 0x50]
call fcn.0075209c
mov dword [ebp - 0x3c], eax
push 0
push 0
xor ecx, ecx
mov edx, 0x81acf4
mov eax, dword [ebp - 0x50]
call fcn.0075209c
mov esi, eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
imul dword [edx]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x94]
xor edx, edx
mov dword [eax + 0x18], edx
xor edx, edx
push ebp
push 0x81a9f9
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x50]
call fcn.007492e4
mov ebx, dword [ebp - 0xe0]
cmp ebx, 0x81ad10
jne 0x819e58
mov al, 1
jmp 0x819e84
test ebx, ebx
je 0x819e65
mov eax, 0x81ad10
test eax, eax
jne 0x819e69
xor eax, eax
jmp 0x819e84
mov edx, 0x81ad10
mov dword [ebp - 0xe4], ebx
mov eax, dword [ebp - 0xe4]
call fcn.00428d9c
test eax, eax
sete al
test al, al
je 0x819ef9
mov dl, 1
mov eax, dword [0x815558]
call fcn.004086d8
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.00414060
mov edi, dword [ebp - 0x94]
mov edi, dword [edi + 0x18]
lea esi, [ebp - 0xf4]
add edi, 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 eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
call fcn.00413a8c
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x20], eax
jmp 0x81a9ef
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x50]
call fcn.007492e4
mov ebx, dword [ebp - 0xf8]
cmp ebx, 0x81ad28
jne 0x819f19
mov al, 1
jmp 0x819f45
test ebx, ebx
je 0x819f26
mov eax, 0x81ad28
test eax, eax
jne 0x819f2a
xor eax, eax
jmp 0x819f45
mov edx, 0x81ad28
mov dword [ebp - 0xe4], ebx
mov eax, dword [ebp - 0xe4]
call fcn.00428d9c
test eax, eax
sete al
test al, al
je 0x81a2fd
xor eax, eax
push ebp
push 0x81a2c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x50]
call fcn.00749270
dec eax
jge 0x819f7c
mov ecx, 0x81ad40
mov dl, 1
mov eax, dword [0x4216dc]
call fcn.004301b4
call fcn.00409be8
xor edx, edx
mov eax, dword [ebp - 0x50]
call fcn.007492c4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xc], 3
je 0x819fa8
mov ecx, 0x81ad5c
mov dl, 1
mov eax, dword [0x4216dc]
call fcn.004301b4
call fcn.00409be8
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 0x54]
call fcn.00749500
mov eax, dword [ebp - 0xfc]
push eax
call fcn.006d9f18
lea ecx, [ebp - 8]
pop edx
call fcn.006d9b3c
cmp dword [ebp - 8], 0
jne 0x819fe7
mov ecx, 0x81ad7c
mov dl, 1
mov eax, dword [0x4216dc]
call fcn.004301b4
call fcn.00409be8
mov dl, 1
mov eax, dword [0x8156c8]
call fcn.00817e40
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x28]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x28]
call fcn.00554178
call fcn.0054c614
mov dl, 1
mov eax, dword [0x54a290]
call fcn.005567d0
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x81a1fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x450f10]
call fcn.0047a448
mov dword [ebp - 0x60], eax
xor eax, eax
push ebp
push 0x81a114
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 0x60]
call fcn.00477f34
push 0
push 0
xor ecx, ecx
mov edx, 0x81ad98
mov eax, dword [ebp - 0x50]
call fcn.0075209c
cmp edx, 0
jne 0x81a098
cmp eax, 1
jne 0x81a098
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x60]
jmp 0x81a0fc
mov dl, 1
mov eax, dword [0x450c08]
call fcn.004086d8
mov dword [ebp - 0x64], eax
xor eax, eax
push ebp
push 0x81a0f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x8a3fcc]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
call fcn.007f1d80
push 0
push 0
mov eax, dword [ebp - 0x64]
call fcn.00477f34
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81a0fc
mov eax, dword [ebp - 0x64]
call fcn.00408708
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81a11b
mov eax, dword [ebp - 0x60]
call fcn.00408708
pop eax
jmp eax
test esi, esi
je 0x81a401
lea ecx, [ebp - 4]
mov edx, dword [0x8a42e4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x50]
call fcn.00751f2c
cmp dword [ebp - 4], 0
jne 0x81a331
xor ecx, ecx
mov dl, 1
mov eax, dword [0x775fa0]
call fcn.004301b4
call fcn.00409be8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
imul dword [ebp - 0x3c]
mov dword [ebp - 0x70], eax
mov dl, 1
mov eax, dword [0x8155f4]
call fcn.004086d8
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x28], esi
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x2c
mov edx, dword [ebp - 4]
call fcn.0040a90c
test esi, esi
jle 0x81a3ae
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
imul dword [ebp - 0x38]
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x70]
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.00414060
mov edi, dword [ebp - 0x94]
mov edi, dword [edi + 0x18]
lea esi, [ebp - 0xf4]
add edi, 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]
jmp 0x81a3df
mov eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x70]
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.00414060
mov edi, dword [ebp - 0x94]
mov edi, dword [edi + 0x18]
lea esi, [ebp - 0xf4]
add edi, 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 eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
call fcn.00413a8c
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x20], eax
jmp 0x81a9ef
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov edx, dword [0x8a42e4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x50]
call fcn.00751f2c
lea eax, [ebp - 0x10]
mov ecx, 0x81add8
mov edx, 0x81adec
call fcn.00436054
lea eax, [ebp - 0x14]
mov ecx, 0x81adfc
mov edx, 0x81ae0c
call fcn.00436054
lea eax, [ebp - 4]
call fcn.00435ea0
test al, al
je 0x81a45f
xor ecx, ecx
mov dl, 1
mov eax, dword [0x775fa0]
call fcn.004301b4
call fcn.00409be8
mov dl, 1
mov eax, dword [0x815400]
call fcn.00817ec4
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x18], eax
push 0
push 0
xor ecx, ecx
mov edx, 0x81ae20
mov eax, dword [ebp - 0x50]
call fcn.0075209c
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov byte [edx + 0x34], al
cmp dword [ebp - 0x38], 1
setg al
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov byte [edx + 0x35], al
push 0
push 0x26e8f0
push 0
push 0x26e8f0
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x50]
call fcn.007f3d6c
mov eax, dword [ebp + 0x1c]
fild dword [eax]
fild qword [ebp - 0x78]
fmulp st(1)
fdiv dword [0x81ae2c]
call fcn.00407db4
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0x1c]
fild dword [eax + 4]
fild qword [ebp - 0x80]
fmulp st(1)
fdiv dword [0x81ae2c]
call fcn.00407db4
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x36], 0
push 0
xor ecx, ecx
mov edx, 0x81ae3c
mov eax, dword [ebp - 0x50]
call fcn.00752140
test al, al
je 0x81a53a
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
movzx edx, byte [0x81ae50]
or byte [eax + 0x36], dl
push 0
xor ecx, ecx
mov edx, 0x81ae60
mov eax, dword [ebp - 0x50]
call fcn.00752140
test al, al
je 0x81a562
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
movzx edx, byte [0x81ae74]
or byte [eax + 0x36], dl
push 0
xor ecx, ecx
mov edx, 0x81ae84
mov eax, dword [ebp - 0x50]
call fcn.00752140
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov byte [edx + 0x37], al
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x20]
imul dword [ebp - 0x38]
push eax
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.00414060
mov edi, dword [ebp - 0x94]
mov edi, dword [edi + 0x18]
lea esi, [ebp - 0xf4]
add edi, 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]
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
call fcn.00413a98
mov eax, dword [ebp - 4]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x81a614
mov eax, dword [ebp - 0x9c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x30
mov ecx, 1
mov edx, dword [0x4122e4]
call fcn.0040d0b8
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x81a9e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00775b78
mov eax, dword [ebp - 0x94]
add eax, 0x1c
xor ecx, ecx
xor edx, edx
call fcn.00414240
mov eax, dword [ebp - 0x94]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x94]
xor edx, edx
mov dword [eax + 0x14], edx
mov dl, 1
mov eax, dword [0x424acc]
call fcn.004342bc
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x10], eax
xor eax, eax
push ebp
push 0x81a9a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x81a978
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x94]
test edx, edx
je 0x81a6c8
sub edx, 0xffffffdc
call fcn.0040ee10
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x81a6f0
mov eax, dword [ebp - 0xa0]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
mov esi, dword [ebp - 0xa0]
dec esi
test esi, esi
jl 0x81a8c1
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
movzx edi, word [eax + ebx*2]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
imul dword [edx + 0x28]
mov dword [ebp - 0x8c], eax
cmp di, 0xa
jne 0x81a735
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xc]
jmp 0x81a8b9
cmp dword [ebp - 0x8c], 0
je 0x81a8b9
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
call fcn.00413a7c
cmp eax, dword [ebp - 0x8c]
jl 0x81a8b9
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
call fcn.00413a7c
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0xc]
add edx, dword [ebp - 0x8c]
cmp eax, edx
jl 0x81a7fc
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x10]
mov edx, edi
call fcn.00433d94
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x8c]
add dword [eax + 0xc], edx
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xa8]
jle 0x81a7dc
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
jmp 0x81a7e8
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0xac]
mov dword [eax + 0x1c], edx
jmp 0x81a8b9
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
cmp byte [eax + 0x35], 0
je 0x81a8c1
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
call fcn.00413a8c
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x20]
mov ecx, dword [ebp - 0x94]
mov ecx, dword [ecx + 0x18]
add edx, dword [ecx + 0x2c]
cmp eax, edx
jl 0x81a8c1
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x10]
mov edx, edi
call fcn.00433d94
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x8c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0xb4]
jle 0x81a89e
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
jmp 0x81a8aa
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0xb8]
mov dword [eax + 0x1c], edx
inc ebx
dec esi
jne 0x81a702
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx - 0x24]
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x94]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x30]
lea eax, [ecx + eax*4]
call fcn.0040a90c
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x30]
lea eax, [edx + eax*4]
call fcn.00435ea0
test al, al
jne 0x81a937
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x94]
add dword [edx + 0x20], eax
mov eax, dword [ebp - 0x94]
inc dword [eax + 0x14]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x30
mov ecx, 1
mov edx, dword [0x4122e4]
call fcn.0040d0b8
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81a97f
lea eax, [ebp - 0x18]
call fcn.0040edf8
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x81aa24
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x18], 0
je 0x81aace
push 0
push 0
xor ecx, ecx
mov edx, 0x81aea4
mov eax, dword [ebp - 0x50]
call fcn.0075209c
mov edx, dword [ebp - 0x94]
mov edx, dword [edx + 0x18]
mov byte [edx + 0x24], al
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x10c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
call fcn.00817ee8
mov eax, dword [ebp - 0x94]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp - 0x10c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x108]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x104]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
cmp eax, dword [ebp - 0x48]
jge 0x81aa97
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x4c]
jge 0x81aaa5
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc0], eax
lea edx, [ebp - 0xc0]
mov eax, dword [ebp + 8]
add eax, 4
call fcn.0050e4c0
mov dword [ebp - 0xc4], eax
inc dword [ebp - 0x2c]
dec dword [ebp - 0x5c]
jne 0x819d79
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x81ab76
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x2c]
ja 0x81ab0c
call fcn.0050c474
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov ebx, dword [eax + edx*4]
mov eax, dword [ebp - 0x94]
mov dword [eax + 0x18], ebx
lea eax, [ebx + 0x10]
call fcn.00413a8c
test eax, eax
je 0x81ab56
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
sub ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
xor edx, edx
call fcn.004141c0
jmp 0x81ab6e
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add eax, 0x10
xor edx, edx
call fcn.004141c0
inc dword [ebp - 0x2c]
dec dword [ebp - 0x5c]
jne 0x81aafc
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp - 0x30]
pop edx
sub eax, edx
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
jle 0x81ab8b
dec eax
test eax, eax
jge 0x81ab91
xor eax, eax
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx + 4]
add edx, 2
imul edx, eax
add edx, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0xc]
add dword [ecx], edx
test eax, eax
jle 0x81ac15
mov dl, 1
mov eax, dword [0x815318]
call fcn.004086d8
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xf4]
push eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
xor ecx, ecx
xor eax, eax
call fcn.00414060
mov edi, dword [ebp - 0x94]
mov edi, dword [edi + 0x18]
lea esi, [ebp - 0xf4]
add edi, 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 eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xd0], eax
lea edx, [ebp - 0xd0]
mov eax, dword [ebp + 8]
add eax, 4
call fcn.0050e4c0
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0xc]
add dword [eax], 2
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81ac80
lea eax, [ebp - 0x100]
mov edx, 3
call fcn.0040a58c
lea eax, [ebp - 0xe0]
call fcn.0040a52c
lea eax, [ebp - 0x1c]
call fcn.0040edf8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a58c
lea eax, [ebp - 8]
mov edx, dword [0x404c40]
call fcn.0040d1dc
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax