Function at 0x816a92
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x1c]
xor eax, eax
mov dword [esp + 0x54], ebx
imul ebx, ebx, 0x160
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x860]
push edi
add eax, 0x10
mov eax, dword [eax + 0x28]
push ebx
push eax
call fcn.00841822
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x3c], edi
je 0x816af1
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0x860]
add eax, 0x10
mov eax, dword [eax + 0x28]
push 0xf4
push eax
call fcn.00841822
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x860]
add eax, 0x10
mov eax, dword [eax + 0x28]
lea edx, [ecx*8]
push edx
push eax
call fcn.00841822
add esp, 0x10
test edi, edi
mov dword [esp + 0x78], eax
je 0x816fae
mov edx, dword [esp + 0x80]
xor ecx, ecx
cmp edx, ecx
je 0x816fae
cmp eax, ecx
je 0x816fae
mov eax, dword [ebp + 0xc]
add ebx, edi
cmp eax, ecx
lea edx, [esp + 0x88]
mov dword [esi + 4], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
je 0x816df9
mov eax, dword [esp + 0x3c]
add eax, 0xb8
mov dword [esp + 0x18], eax
mov eax, edx
sub eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov ecx, edx
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x816bb2
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x78]
add edi, 0xffffff48
mov dword [edx + 4], edi
mov ebx, dword [eax + 0x24]
mov edx, dword [esp + 0x10]
mov dword [edi], ebx
mov dword [ecx + edx*4], ebx
mov ecx, dword [ebx]
mov eax, dword [ecx]
push 0x12
mov dword [esp + 0x30], edi
call dword [eax + 0x9c]
mov ecx, dword [ebx + 0x60]
shl ecx, 2
mov dword [ebx + 0x160], edi
mov edx, ecx
xor eax, eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0x168], eax
shr ecx, 2
lea edi, [ebx + 0x3f4]
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x74]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x1c4]
mov eax, dword [ebx + 0x1c0]
mov edi, dword [esp + 0x70]
or edx, ecx
or edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xa0], esi
mov dword [eax - 0xa0], 0
mov ecx, dword [edx + 0x14]
test ecx, ecx
mov dword [esp + 0x70], edi
mov dword [eax - 0xa4], ecx
je 0x816d30
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
test edx, edx
jne 0x816c81
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x816daf
mov edx, dword [ecx]
call dword [edx + 0x58]
mov edi, dword [ebx + 0x1c4]
mov ecx, eax
mov eax, dword [ebx + 0x1c0]
not eax
and ecx, eax
mov eax, dword [esp + 0x18]
not edi
and edx, edi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test byte [ebx + 0x136], 1
je 0x816ce3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + ecx]
mov edi, dword [edx + 0x1c0]
mov ecx, dword [ecx]
or edi, dword [ecx + 0xb8]
mov edx, dword [edx + 0x1c4]
or edx, dword [ecx + 0xbc]
or edi, dword [eax]
or edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x44], 2
je 0x816d0b
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x24]
mov ecx, dword [edx + 0x1c0]
mov edi, dword [eax]
or edi, ecx
mov ecx, dword [eax + 4]
mov dword [eax], edi
mov edx, dword [edx + 0x1c4]
or ecx, edx
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x1c0]
mov ecx, dword [esp + 0x48]
or ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x1c4]
or eax, ecx
mov dword [esp + 0x4c], eax
jmp 0x816dc7
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x54]
xor ecx, ecx
cmp eax, ecx
je 0x816d6c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + eax]
mov edi, dword [edx + 0x1c0]
mov eax, dword [eax]
or edi, dword [eax + 0xb8]
mov edx, dword [edx + 0x1c4]
or edx, dword [eax + 0xbc]
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], edx
jmp 0x816d75
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
cmp dword [ebx + 0x114], ecx
jne 0x816d8f
mov eax, dword [ebx]
cmp dword [eax + 0x48], 1
ja 0x816dc7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x816dc7
mov ecx, dword [ebx]
mov edx, dword [ecx]
call dword [edx + 0x12c]
test ah, 0x20
jne 0x816dc7
mov al, byte [ebx + 0x141]
test al, al
jne 0x816dc7
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov ebx, esi
xor ecx, ecx
call fcn.00807f02
mov eax, edi
inc eax
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
add ebx, 0x160
inc edi
add edx, 4
test eax, eax
mov dword [esp + 0x18], ebx
mov dword [ebp + 0xc], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
jne 0x816bb2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
xor edi, edi
mov dword [esp + ecx*4 + 0x88], edi
mov ecx, dword [esp + 0x4c]
mov edx, eax
or edx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
je 0x816f26
mov edx, dword [esi + 0x1c]
dec edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x816f26
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov eax, dword [edx + 0xb8]
mov edi, dword [edx + 0xbc]
not ecx
not ebx
and eax, ecx
and edi, ebx
or eax, edi
mov dword [esp + 0x40], ecx
je 0x816ed7
mov edi, dword [esp + 0x1c]
cmp edi, dword [esi + 0x1c]
mov dword [esp + 0x14], edx
jae 0x816eb7
jmp 0x816e82
mov ecx, dword [esp + 0x40]
mov edi, edi
mov edx, dword [esp + edi*4 + 0x88]
mov eax, dword [edx + 0xb8]
and eax, ecx
mov ecx, dword [edx + 0xbc]
and ecx, ebx
or eax, ecx
je 0x816eb4
mov eax, dword [esp + 0x14]
mov dword [esp + edi*4 + 0x88], eax
mov eax, dword [esi + 0x1c]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edx
jb 0x816e7c
cmp edi, dword [esi + 0x1c]
je 0x816fba
mov ecx, dword [esp + edi*4 + 0x88]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edi, [esp + edi*4 + 0x88]
mov dword [edx], ecx
mov dword [edi], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [eax + 0x1c0]
mov eax, dword [eax + 0x1c4]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
or edi, eax
mov eax, dword [esp + 0x1c]
or ebx, edx
add ecx, 4
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
dec eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
jb 0x816e43
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
xor edi, edi
mov edx, dword [ebp + 0x10]
cmp edx, edi
jne 0x816f33
mov ebx, eax
or ebx, ecx
je 0x816f60
mov ebx, dword [esi + 0x8fc]
push ebx
not ecx
push ecx
mov ecx, dword [ebp + 0x14]
not eax
push eax
mov eax, dword [esp + 0x48]
push edx
mov edx, dword [esi + 0x1c]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x860]
call fcn.0080ac12
add esp, 0x1c
test eax, eax
jne 0x816fae
mov eax, dword [esp + 0xc]
lea ebx, [esi + 0x70]
shl eax, 4
add eax, ebx
cmp ebx, eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], eax
jae 0x817012
mov edi, dword [ebx + 8]
mov edx, dword [edi]
mov dword [edi + 0xe0], 1
mov eax, dword [edx + 0x1c0]
or dword [esi + 0x40], eax
mov ecx, dword [edx + 0x1c4]
or dword [esi + 0x44], ecx
call fcn.00811fe2
test eax, eax
je 0x816fdc
jle 0x816ffe
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x460
mov dword [esi + 0x1c], 0
call fcn.00844652
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov eax, dword [edx + 0x1c0]
mov ecx, dword [esp + 0x20]
or ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 0x1c4]
or eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add ebx, 0x10
cmp ebx, eax
jb 0x816f82
jmp 0x817012
mov eax, dword [esp + 0xc]
mov edi, dword [esp + eax*4 + 0x88]
xor ecx, ecx
cmp edi, ecx
lea eax, [esp + eax*4 + 0x88]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], eax
je 0x817442
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 6]
shl eax, 4
add eax, esi
mov dword [esp + 0x10], eax
lea eax, [ecx + 7]
shl eax, 4
add eax, esi
shl ecx, 4
mov dword [esp + 0x14], eax
lea eax, [ecx + esi]
lea edx, [eax + 0x7c]
add eax, 0x78
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
lea esp, [esp]
mov edx, dword [edi + 0xb8]
mov ebx, dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
or ecx, ebx
mov dword [esp + 0x18], eax
je 0x817183
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
not eax
not ecx
and eax, edx
and ecx, ebx
or eax, ecx
jne 0x81742c
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx]
cmp dword [ecx + 0x48], 1
ja 0x817183
mov edx, dword [ecx]
call dword [edx + 0x12c]
test ah, 0x20
jne 0x817183
mov edx, dword [esp + 0x2c]
fld qword [0x5e0330]
mov dword [edi + 0xe0], 1
mov eax, dword [ebx + 0x1c0]
mov ecx, dword [esi + 0x40]
or ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x40], ecx
mov ecx, dword [ebx + 0x1c4]
mov ebx, dword [esi + 0x44]
or ebx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x44], ebx
fstp qword [ecx]
mov dword [eax], 0
mov eax, dword [esp + 0xc]
mov dword [edx], edi
mov edx, dword [esi + 4]
lea eax, [edx + eax*4]
lea ecx, [eax + 4]
mov eax, dword [eax]
cmp eax, edi
je 0x81712f
lea ebx, [ebx]
mov edx, dword [ecx]
mov dword [ecx], eax
add ecx, 4
cmp edx, edi
mov eax, edx
jne 0x817122
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4], edi
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0xc], eax
mov eax, 0x10
add ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add edx, eax
add ecx, eax
add ebx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebx
call fcn.00811fe2
test eax, eax
je 0x817408
jg 0x816fae
jmp 0x81742c
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x81742c
mov ecx, dword [esp + 0x18]
mov dword [edi + 0xe0], 4
cmp dword [ebx], ecx
jne 0x81742c
mov ecx, dword [ebx + 0x10]
mov eax, 1
xor edx, edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x5c], ecx
call fcn.00924782
mov ecx, dword [edi + 0xa0]
or ecx, eax
or dword [edi + 0xa4], edx
xor eax, eax
mov dword [edi + 0xa0], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
call dword [edx + 0x30]
cmp eax, 6
je 0x81727e
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x81727e
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x24]
not eax
and eax, edx
mov edx, dword [ebx + 0xc]
not ecx
and ecx, edx
or eax, ecx
jne 0x817244
mov ecx, dword [ebx + 0x14]
mov eax, 1
xor edx, edx
call fcn.00924782
mov ecx, dword [esp + 0x60]
or ecx, eax
mov eax, dword [esp + 0x64]
or eax, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
jmp 0x81725b
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x68]
or ecx, eax
mov eax, dword [esp + 0x6c]
or eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov ecx, dword [ebx + 0x14]
mov eax, 1
xor edx, edx
call fcn.00924782
mov ecx, dword [esp + 0x30]
or ecx, eax
mov eax, dword [esp + 0x34]
or eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x28]
add ebx, 0x28
cmp ecx, eax
jne 0x817299
mov ecx, dword [esp + 0x5c]
cmp dword [ebx + 0x10], ecx
je 0x8171e9
mov eax, dword [esp + 0x5c]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xb8]
lea ecx, [ecx + edx*8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ecx + 8]
mov eax, 1
xor edx, edx
call fcn.00924782
mov ecx, dword [esp + 0x30]
add eax, 0xffffffff
adc edx, 0xffffffff
cmp ecx, eax
jne 0x817323
mov ecx, dword [esp + 0x34]
cmp ecx, edx
jne 0x817323
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 4]
and eax, 0x1001
cmp eax, 1
jne 0x817323
mov eax, dword [esp + 0x18]
mov dl, byte [eax + 0x141]
test dl, dl
jne 0x817327
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x60], edx
jne 0x817305
cmp dword [esp + 0x64], ecx
je 0x817334
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x40]
or edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x6c]
or ecx, edx
mov dword [esp + 0x44], ecx
jmp 0x817327
mov eax, dword [esp + 0x18]
cmp dword [ebx], eax
je 0x8171a4
jmp 0x81742c
fld qword [0x5e0330]
mov dword [edi + 0xe0], 2
mov ecx, dword [eax + 0x1c0]
mov edx, dword [esi + 0x40]
mov ebx, dword [esi + 0x44]
or edx, ecx
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x40], edx
mov edx, dword [eax + 0x1c4]
mov eax, dword [esp + 0x2c]
or ebx, edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x44], ebx
mov dword [eax], edi
mov eax, dword [esp + 0x14]
mov dword [edx], ecx
fstp qword [eax]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xc]
lea eax, [ecx + edx*4]
lea ecx, [eax + 4]
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x28], 1
je 0x81739f
nop
mov edx, dword [ecx]
mov dword [ecx], eax
add ecx, 4
cmp edx, edi
mov eax, edx
jne 0x817392
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [ecx + eax*4], edi
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0xc], eax
mov eax, 0x10
add ecx, eax
add edx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
add ecx, eax
push edx
add ebx, eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x84]
push ecx
push edi
push esi
mov dword [esp + 0x30], ebx
call fcn.008145b2
add esp, 0x14
test eax, eax
jne 0x816fae
mov ebx, dword [esp + 0x10]
jmp 0x81716b
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x1c0]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x1c4]
or edi, edx
or ecx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 4]
add eax, 4
test edi, edi
mov dword [esp + 0x54], eax
jne 0x817072
mov eax, dword [esi + 0x40]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esi + 0x44]
mov edi, dword [esp + 0x44]
and eax, ebx
and ecx, edi
or eax, ecx
je 0x817464
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x817012
mov ebx, dword [esp + 0x3c]
cmp ebx, dword [esp + 0x58]
jae 0x81777a
mov ecx, dword [esp + 0xc]
add ebx, 0x14
shl ecx, 4
lea edx, [ecx + esi + 0x7c]
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0xcc]
mov ecx, 1
cmp eax, ecx
je 0x817746
cmp eax, 2
je 0x817746
mov eax, dword [ebx - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x48]
lea edi, [ebx - 0x14]
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
call fcn.009247a2
fild dword [ebx + 0x98]
mov ecx, dword [ebx + 0x98]
test ecx, ecx
mov dword [ebx + 0x9c], eax
jge 0x8174e1
fadd qword [0x5e0280]
test eax, eax
fmul qword [0x6023a0]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
jge 0x8174f9
fadd qword [0x5e0280]
fmul qword [0x602398]
fstp qword [esp + 0x40]
fcom qword [esp + 0x40]
fnstsw ax
test ah, 5
jnp 0x817514
fstp st(0)
fld qword [esp + 0x40]
fst qword [ebx + 0x6c]
fcomp qword [0x5e36d0]
fnstsw ax
test ah, 5
jp 0x81752d
fld qword [0x5e36d0]
fstp qword [ebx + 0x6c]
mov edx, dword [ebx + 0x74]
or edx, dword [ebx + 0x78]
je 0x817761
mov eax, dword [ebx]
test eax, eax
jne 0x817542
mov eax, dword [ebp + 0x10]
mov edx, dword [edi]
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push eax
push ecx
push eax
push edx
call fcn.007c0592
mov ecx, dword [edi]
mov edx, dword [esi + 0x64]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x860]
add esp, 0x1c
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], ecx
je 0x8175d2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push 0
push edx
push 0
mov dword [ecx + 8], eax
mov dword [eax + 0x16c], 0
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x74]
push 0
push edx
mov edx, dword [esp + 0x68]
push eax
push edx
call fcn.007c3532
cmp eax, 1
jne 0x8175bb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x78]
jmp 0x8175d9
cmp eax, 0xffffffff
jne 0x8175d2
mov edx, dword [esp + 0x28]
mov dword [edx + 0x16c], 1
xor ecx, ecx
jmp 0x8175d5
or ecx, 0xffffffff
mov eax, dword [esp + 0x10]
test ecx, ecx
mov edx, dword [eax]
mov dword [ebx - 4], edx
mov edx, dword [eax + 0xc8]
mov dword [ebx + 0x84], edx
mov edx, dword [eax + 0xcc]
mov dword [ebx + 0x88], edx
mov dword [esp + 0x14], ecx
mov dword [eax], 0
jne 0x817723
mov eax, dword [edi]
mov edx, dword [eax + 0x16c]
test edx, edx
je 0x81770e
mov ecx, dword [eax + 0x1c0]
fld qword [0x5e0330]
mov edx, dword [esi + 0x40]
or edx, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], edx
mov edx, dword [eax + 0x1c4]
or dword [esi + 0x44], edx
mov eax, dword [esp + 0x1c]
fstp qword [eax - 0xc]
mov dword [eax - 4], edi
mov dword [eax], 0
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
lea ecx, [eax + 4]
mov eax, dword [eax]
lea edx, [ebx - 0x14]
cmp eax, edx
je 0x817676
lea esp, [esp]
mov edx, dword [ecx]
mov dword [ecx], eax
mov eax, edx
mov dword [esp + 0x28], edx
lea edx, [ebx - 0x14]
add ecx, 4
cmp eax, edx
jne 0x817662
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov dword [edx + eax*4], edi
inc eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
add ecx, 0x10
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0xcc], 2
je 0x81770a
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], 0x602380
mov eax, dword [edx + 0x1c0]
or ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 0x1c4]
mov dword [ebx + 0xcc], 2
mov edi, dword [edx + 0x110]
or eax, ecx
mov ecx, dword [edx + 0x1bc]
or edi, 0x20
mov dword [edx + 0x110], edi
mov edi, dword [edx + 0x1d0]
mov byte [edx + 0x135], 1
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x24], eax
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx - 4]
test eax, eax
mov dword [ebx + 0x98], ecx
je 0x81772a
fld qword [eax + 0x80]
jmp 0x817730
cmp ecx, 0xffffffff
je 0x81773b
jmp 0x81770e
fld qword [0x5e0338]
call fcn.009247a2
mov dword [ebx + 0x9c], eax
mov ecx, dword [esp + 0x10]
call fcn.007bf8e2
jmp 0x817761
fld qword [0x5e0330]
mov dword [ebx + 0x9c], ecx
fstp qword [ebx + 0x6c]
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov ecx, dword [esp + 0x58]
add ebx, 0x160
lea eax, [ebx - 0x14]
cmp eax, ecx
jb 0x817484
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x4c], ecx
cmp eax, dword [esi + 0x1c]
mov dword [esi], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x48], edx
je 0x8177ff
mov eax, dword [ebp + 0x14]
push esi
call fcn.00807e42
fld qword [0x5e0218]
mov edx, dword [esi + 0x20]
fstp qword [esi + 0x830]
fld qword [0x5e0338]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov ebx, dword [esp + 0x78]
sub esp, 0xc
fstp qword [esp + 8]
not ecx
fld qword [0x5e0330]
not eax
fstp qword [esp]
push edx
mov edx, dword [esp + 0x84]
and ecx, ebx
push ecx
and eax, edx
push eax
push esi
call fcn.0080aee2
add esp, 0x20
jmp 0x81782f
mov ecx, dword [esp + 0xc]
fld qword [0x5e0330]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x48]
shl ecx, 4
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x450]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
fstp qword [eax + 0x830]
mov esi, eax
mov eax, dword [esi + 0x860]
mov cl, byte [eax + 0x1398]
test cl, cl
jne 0x816fae
mov ebx, esi
call fcn.00815862
test eax, eax
jne 0x816fae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret