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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
mov edx, dword [0x821950]
push esi
mov esi, dword [esp + 0xc0]
push edi
mov edi, ecx
mov ebx, dword [0x821954]
mov eax, dword [esi]
mov dword [esp + 0x44], 0
mov ebp, dword [edi + 0xb0]
mov ecx, dword [edi + 0xb4]
add eax, ebp
mov ebp, dword [esi + 4]
sub eax, edx
add ecx, ebp
mov dword [esp + 0x1c], eax
sub ecx, ebx
fild dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x3c]
push eax
lea edx, [edi + 0xde4]
fstp dword [esp + 0x40]
fild dword [esp + 0x24]
lea ecx, [esp + 0x4c]
fstp dword [esp + 0x44]
call fcn.0058e030
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
fld dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
call fcn.0076a6b0
fld dword [esp + 0x40]
mov ebx, eax
call fcn.0076a6b0
xor ecx, ecx
mov dword [esp + 0x78], ebx
cmp eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
jge 0x69c8ed
mov dword [esp + 0x7c], ecx
cmp ebx, ecx
jge 0x69c8f5
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, 0x81a800
call fcn.00545340
mov ebx, dword [eax + 0x24]
mov ecx, dword [esi + 0xc]
mov eax, 0x88888889
push 0
imul ecx
add edx, ecx
mov ecx, dword [esi + 8]
sar edx, 3
mov eax, edx
push 0
shr eax, 0x1f
push esi
mov dword [esp + 0x34], ebx
lea ebp, [edx + eax + 0x14]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 4]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x44], edx
mov edx, 0x821950
call fcn.0041fdf0
mov ecx, dword [eax]
add word [esp + 0x2a], 0xfffe
mov dword [esp + 0x64], ecx
add ebx, 0xfffffffc
mov edx, dword [eax + 4]
inc ebp
mov dword [esp + 0x68], edx
mov word [esp + 0x28], bx
mov ecx, dword [eax + 8]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 0xc]
test ebp, ebp
mov dword [esp + 0x70], edx
jl 0x69cd03
lea eax, [ebp + 1]
mov dword [esp + 0x14], eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov word [esp + 0x1e], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1e]
add ecx, edx
mov word [esp + 0x18], cx
mov ecx, dword [esp + 0x2a]
add eax, ecx
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x10], edx
jle 0x69cb4f
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov ecx, 0x81a800
push eax
call fcn.00547df0
test al, al
je 0x69cb36
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x81a800
call fcn.005453b0
mov ebx, eax
cmp dword [ebx + 0x44], 0xffffffff
je 0x69cb36
lea edx, [esp + 0xa0]
mov ecx, ebx
push edx
call fcn.00474ab0
mov ecx, dword [eax]
push 0
mov dword [esp + 0x58], ecx
push 0
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0xb8]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], edx
push eax
lea edx, [esp + 0x70]
call fcn.0041fdf0
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x90], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 8]
test eax, eax
mov ecx, dword [ecx + 0xc]
jle 0x69cb36
test ecx, ecx
jle 0x69cb36
movsx eax, word [esp + 0x12]
movsx ecx, word [esp + 0x10]
shl eax, 8
add eax, 0x80
push 0
cdq
and edx, 0xff
add eax, edx
sar eax, 8
shl ecx, 8
shl eax, 8
add ecx, 0x80
push eax
mov eax, ecx
lea ecx, [esp + 0x8c]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
shl eax, 8
push eax
call fcn.0041b630
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.00697c90
mov edx, dword [edi + 0xb0]
mov ecx, eax
mov esi, dword [edi + 0xb4]
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
sub eax, edx
mov ecx, dword [ecx + 4]
sub eax, 0x1e
sub ecx, esi
mov dword [esp + 0x30], eax
lea edx, [esp + 0x64]
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
push eax
mov ecx, ebx
call fcn.004745c0
inc word [esp + 0x10]
mov eax, dword [esp + 0x24]
dec word [esp + 0x12]
dec eax
mov dword [esp + 0x24], eax
jne 0x69c9e2
mov ecx, dword [esp + 0x14]
dec ebp
dec ecx
test ebp, ebp
mov dword [esp + 0x14], ecx
jge 0x69c992
mov ebp, dword [esp + 0x74]
test ebp, ebp
jl 0x69cd03
lea ecx, [ebp + 1]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov word [esp + 0x1e], ax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x2a]
mov word [esp + 0x24], dx
mov edx, dword [esp + 0x1e]
add edx, eax
mov word [esp + 0x26], dx
mov edx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x10], edx
jle 0x69ccf1
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x10]
mov ecx, 0x81a800
push eax
call fcn.00547df0
test al, al
je 0x69ccd4
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x81a800
call fcn.005453b0
mov ebx, eax
cmp dword [ebx + 0x44], 0xffffffff
je 0x69ccd4
lea edx, [esp + 0xb0]
mov ecx, ebx
push edx
call fcn.00474d00
mov ecx, dword [eax]
push 0
mov dword [esp + 0x58], ecx
push 0
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0xa8]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], edx
push eax
lea edx, [esp + 0x70]
call fcn.0041fdf0
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x90], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 8]
test eax, eax
mov ecx, dword [ecx + 0xc]
jle 0x69ccd4
test ecx, ecx
jle 0x69ccd4
movsx eax, word [esp + 0x10]
movsx ecx, word [esp + 0x12]
shl eax, 8
add eax, 0x80
cdq
and edx, 0xff
shl ecx, 8
add eax, edx
add ecx, 0x80
mov esi, eax
mov eax, ecx
cdq
and edx, 0xff
xor ecx, ecx
add eax, edx
mov dword [esp + 0x50], ecx
sar esi, 8
sar eax, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x48]
shl esi, 8
shl eax, 8
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
call fcn.00697ec0
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x30]
push eax
sub edx, 0x1e
push ecx
mov ecx, ebx
mov dword [esp + 0x38], edx
call fcn.00474430
inc word [esp + 0x10]
mov eax, dword [esp + 0x18]
dec word [esp + 0x12]
dec eax
mov dword [esp + 0x18], eax
jne 0x69cbc4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
dec ebp
dec edx
test ebp, ebp
mov dword [esp + 0x14], edx
jge 0x69cb78
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 4