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

Disassembly:
push 0xffffffffffffffff
push 0x1019ad98
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0xb4]
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 0x3c]
add esi, 0x1c
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
mov ecx, esi
mov dword [esp + 0x34], ebx
call edx
fld dword [esp + 0xc4]
fmul qword [0x101e94b8]
mov ebp, eax
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ebp
fldcw word [esp + 0x4c]
fistp qword [esp + 0x44]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
lea eax, [edi + 8]
fldcw word [esp + 0x1c]
call fcn.100509f0
fstp dword [esp + 0x4c]
test ebx, ebx
je 0x10085302
test ebp, ebp
je 0x10085302
fldz
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x44
jnp 0x10085302
lea ebx, [esp + 0x64]
mov eax, edi
call fcn.1002d160
mov dword [esp + 0xa8], 0
fld dword [esp + 0x74]
fld qword [0x101e94b8]
fmul st(1), st(0)
fld qword [0x101e9328]
fadd st(2), st(0)
fxch st(2)
call fcn.10189ea0
fld dword [esp + 0x78]
fmul st(1)
mov dword [esp + 0x54], eax
fadd st(2)
call fcn.10189ea0
fld dword [esp + 0x7c]
fmul st(1)
mov dword [esp + 0x5c], eax
fadd st(2)
call fcn.10189ea0
fld dword [esp + 0x80]
fmul st(1)
mov dword [esp + 0x58], eax
fadd st(2)
call fcn.10189ea0
fld dword [esp + 0x90]
fmul st(1)
mov ebx, eax
mov dword [esp + 0x4c], ebx
fadd st(2)
call fcn.10189ea0
fmul dword [esp + 0x94]
mov dword [esp + 0x30], eax
faddp st(1)
call fcn.10189ea0
fldz
fcomp dword [esp + 0xc4]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x34]
mov edi, dword [ecx + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
fnstsw ax
mov dword [esp + 0x50], ebp
test ah, 5
jp 0x10084a64
test ebx, ebx
jg 0x100849db
neg ebx
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x24], ebx
jg 0x100849e9
neg eax
mov ecx, dword [esp + 0x58]
test ecx, ecx
mov dword [esp + 0x18], eax
mov edx, ecx
jg 0x100849f9
neg edx
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov dword [esp + 0x2c], edx
jg 0x10084a07
neg ecx
cmp eax, ebx
mov dword [esp + 0x28], ecx
lea ebx, [esp + 0x18]
jg 0x10084a17
lea ebx, [esp + 0x24]
cmp ecx, edx
lea eax, [esp + 0x28]
jg 0x10084a23
lea eax, [esp + 0x2c]
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jl 0x10084a2b
mov eax, ebx
mov eax, dword [eax]
xor ebx, ebx
cmp eax, dword [esp + 0x20]
jbe 0x10084a64
add ebx, 1
mov edx, eax
mov ecx, ebx
shr edx, cl
cmp edx, dword [esp + 0x20]
ja 0x10084a35
test ebx, ebx
jbe 0x10084a64
mov eax, dword [esp + 0x34]
lea esp, [esp]
mov edx, eax
mov ecx, ebx
shr edx, cl
cmp edx, 2
jae 0x10084b15
sub ebx, 1
jne 0x10084a50
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xb0], eax
jne 0x10084aa9
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov esi, dword [esp + 0xc0]
mov edi, eax
call fcn.10006150
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.101834d0
add esp, 0xc
mov edi, dword [esi + 4]
mov esi, dword [esp + 0xb0]
mov eax, dword [esp + 0xbc]
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + 0x54]
lea ecx, [esi + 0x1c]
push eax
mov eax, dword [esp + 0xbc]
push eax
call edx
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
add esi, 0xffffffff
add ebp, 0xffffffff
sar eax, 0x10
sar edx, 0x10
test eax, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], ebp
jl 0x10084ef5
cmp eax, esi
jge 0x10084ef5
test edx, edx
jl 0x10084ef5
cmp edx, ebp
jge 0x10084ef5
mov bl, 1
jmp 0x10084ef7
test ebx, ebx
jbe 0x10084a64
mov eax, dword [esp + 0x3c]
mov edx, eax
mov ecx, ebx
shr edx, cl
cmp edx, 2
jae 0x10084b36
sub ebx, 1
jne 0x10084b21
jmp 0x10084a64
test ebx, ebx
jbe 0x10084a64
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov esi, 0x7fffffff
cmp eax, esi
mov ebp, 0x80000000
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x24]
jl 0x10084b74
lea ecx, [esp + 0x20]
cmp edx, esi
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
jl 0x10084b86
lea ecx, [esp + 0x1c]
mov ecx, dword [ecx]
cmp eax, ebp
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x24]
jg 0x10084b98
lea eax, [esp + 0x2c]
cmp edx, ebp
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
jg 0x10084baa
lea eax, [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
imul eax, edx
imul esi, edx
mov edx, dword [esp + 0x4c]
imul edx, dword [esp + 0xbc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0xbc]
mov dword [esp + 0x60], eax
add eax, ecx
add eax, dword [esp + 0x30]
mov dword [esp + 0x44], esi
add esi, edx
add esi, dword [esp + 0x38]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
lea ebp, [esp + 0x24]
jl 0x10084c07
lea ebp, [esp + 0x20]
cmp esi, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [esp + 0x20], ebp
lea ebp, [esp + 0x18]
jl 0x10084c1c
lea ebp, [esp + 0x1c]
mov ebp, dword [ebp]
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x24]
jg 0x10084c31
lea eax, [esp + 0x2c]
cmp esi, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
jg 0x10084c45
lea eax, [esp + 0x28]
mov ebp, dword [eax]
mov eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x38]
add edx, eax
cmp ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x24]
jl 0x10084c6d
lea eax, [esp + 0x20]
cmp edx, dword [esp + 0x1c]
mov esi, dword [eax]
mov dword [esp + 0x20], esi
lea eax, [esp + 0x18]
jl 0x10084c81
lea eax, [esp + 0x1c]
mov eax, dword [eax]
cmp ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24]
jg 0x10084c95
lea ecx, [esp + 0x2c]
cmp edx, ebp
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
jg 0x10084ca7
lea eax, [esp + 0x28]
mov ebp, dword [eax]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
add eax, edx
mov edx, dword [esp + 0x38]
add ecx, edx
cmp eax, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x24]
jl 0x10084cd5
lea edx, [esp + 0x20]
cmp ecx, dword [esp + 0x1c]
mov edx, dword [edx]
lea esi, [esp + 0x18]
jl 0x10084ce5
lea esi, [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
mov esi, dword [esi]
lea eax, [esp + 0x24]
jg 0x10084cf5
lea eax, [esp + 0x2c]
mov eax, dword [eax]
cmp ecx, ebp
lea ecx, [esp + 0x18]
jg 0x10084d03
lea ecx, [esp + 0x28]
movsx ecx, word [ecx + 2]
sar eax, 0x10
add eax, 2
sar edx, 0x10
xor ebp, ebp
add ecx, 2
sar esi, 0x10
cmp edx, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], ebp
lea eax, [esp + 0x44]
jl 0x10084d38
lea eax, [esp + 0x20]
cmp esi, ebp
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ebp
lea edx, [esp + 0x44]
jl 0x10084d4e
lea edx, [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov edx, dword [edx]
cmp esi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], esi
lea eax, [esp + 0x44]
jl 0x10084d68
lea eax, [esp + 0x20]
mov eax, dword [eax]
mov ebp, dword [esp + 0x3c]
cmp ebp, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ebp
lea eax, [esp + 0x44]
jl 0x10084d82
lea eax, [esp + 0x1c]
cmp dword [esp + 0x2c], 0
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], 0
lea eax, [esp + 0x44]
jl 0x10084d9f
lea eax, [esp + 0x2c]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], 0
lea eax, [esp + 0x44]
jl 0x10084db9
lea eax, [esp + 0x28]
cmp esi, edx
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
jl 0x10084dcf
lea ecx, [esp + 0x2c]
mov ecx, dword [ecx]
cmp ebp, eax
mov dword [esp + 0x44], ebp
lea eax, [esp + 0x44]
jl 0x10084de1
lea eax, [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov eax, dword [eax]
sub eax, dword [esp + 0x1c]
mov edx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], eax
mov esi, edx
mov ecx, ebx
shr esi, cl
cmp esi, 2
jae 0x10084e0a
sub ebx, 1
jne 0x10084df5
jmp 0x10084aa9
test ebx, ebx
jbe 0x10084aa9
mov edx, eax
mov ecx, ebx
shr edx, cl
cmp edx, 2
jae 0x10084e27
sub ebx, 1
jne 0x10084e12
jmp 0x10084aa9
test ebx, ebx
jbe 0x10084aa9
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0xc0]
shr ebp, 1
shr eax, 1
mov edi, ebp
imul edi, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], ebp
call fcn.10006150
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xb4]
imul ecx, eax
add ecx, dword [edx + 4]
push eax
add ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x48]
call fcn.100847d0
add esp, 0xc
cmp ebx, 1
jbe 0x10084eb8
mov edi, dword [esp + 0x40]
lea ecx, [ebx - 1]
mov dword [esp + 0x3c], ecx
mov eax, dword [esi + 4]
push edi
push eax
push eax
mov eax, ebp
mov ecx, edi
call fcn.100847d0
add esp, 0xc
shr edi, 1
shr ebp, 1
sub dword [esp + 0x3c], 1
jne 0x10084e93
mov dword [esp + 0x50], ebp
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ecx, ebx
sar dword [esp + 0x54], cl
sar dword [esp + 0x5c], cl
sar dword [esp + 0x58], cl
sar dword [esp + 0x4c], cl
shl eax, 0x10
sub edx, eax
mov eax, dword [esp + 0x1c]
sar edx, cl
shl eax, 0x10
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x38]
sub edx, eax
sar edx, cl
mov dword [esp + 0x38], edx
jmp 0x10084aa6
xor bl, bl
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
add eax, 0xffffffff
mov edx, eax
imul eax, dword [esp + 0x58]
imul edx, dword [esp + 0x54]
add esi, edx
add ebp, eax
sar esi, 0x10
sar ebp, 0x10
test bl, bl
mov dword [esp + 0x60], eax
je 0x10084f40
test esi, esi
jl 0x10084f40
cmp esi, dword [esp + 0x34]
jge 0x10084f40
test ebp, ebp
jl 0x10084f40
cmp ebp, dword [esp + 0x18]
mov byte [esp + 0x1c], 1
jl 0x10084f45
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0xbc]
mov ebx, dword [esp + 0x30]
add esi, 0xffffffff
mov eax, esi
imul esi, dword [esp + 0x4c]
imul eax, dword [esp + 0x5c]
lea ebp, [eax + ebx]
mov ebx, dword [esp + 0x38]
add ebx, esi
sar ebx, 0x10
sar ebp, 0x10
cmp byte [esp + 0x1c], 0
mov dword [esp + 0x44], ebx
je 0x10084f91
test ebp, ebp
jl 0x10084f91
cmp ebp, dword [esp + 0x34]
jge 0x10084f91
test ebx, ebx
jl 0x10084f91
cmp ebx, dword [esp + 0x18]
jge 0x10084f91
mov bl, 1
jmp 0x10084f93
xor bl, bl
mov ebp, dword [esp + 0x30]
add eax, edx
mov edx, dword [esp + 0x60]
add esi, edx
mov edx, dword [esp + 0x38]
add eax, ebp
add esi, edx
sar eax, 0x10
sar esi, 0x10
test bl, bl
je 0x100850f7
test eax, eax
jl 0x100850f7
cmp eax, dword [esp + 0x34]
jge 0x100850f7
test esi, esi
jl 0x100850f7
cmp esi, dword [esp + 0x18]
jge 0x100850f7
mov eax, dword [esp + 0xbc]
test eax, eax
jle 0x100852f4
mov dword [esp + 0x24], edx
mov ebx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
cmp dword [esp + 0xb8], 0
mov dword [esp + 0x34], edx
jle 0x100850c3
mov eax, dword [esp + 0x40]
add eax, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x30], eax
jmp 0x10085028
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov eax, edx
sar eax, 0x10
imul eax, dword [esp + 0x40]
movzx ebp, bx
mov esi, ebx
add ebx, dword [esp + 0x54]
sar esi, 0x10
add eax, esi
movzx esi, byte [edi + eax + 1]
mov dword [esp + 0x44], ebx
imul esi, ebp
mov ebx, dword [esp + 0x58]
add dword [esp + 0x34], ebx
movzx ebx, byte [eax + edi]
movzx edx, dx
mov dword [esp + 0x38], edx
mov edx, 0x10000
sub edx, ebp
imul ebx, edx
lea esi, [esi + ebx + 0x800]
mov ebx, 0x10000
sub ebx, dword [esp + 0x38]
shr esi, 0xc
imul esi, ebx
mov ebx, dword [esp + 0x3c]
movzx ebx, byte [ebx + eax + 1]
imul ebx, ebp
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x3c]
movzx eax, byte [eax + ebp]
imul eax, edx
lea edx, [ebx + eax + 0x800]
shr edx, 0xc
imul edx, dword [esp + 0x38]
lea eax, [esi + edx + 0x80000]
shr eax, 0x14
mov byte [ecx], al
add ecx, 1
sub dword [esp + 0x30], 1
jne 0x10085020
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add ebx, dword [esp + 0x5c]
add edx, dword [esp + 0x4c]
sub dword [esp + 0x28], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
jne 0x10084ff6
lea ecx, [esp + 0x98]
call fcn.10050d00
jmp 0x1008532b
mov eax, dword [esp + 0xbc]
test eax, eax
jle 0x100852f4
mov dword [esp + 0x2c], edx
mov esi, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
jmp 0x10085120
cmp dword [esp + 0xb8], 0
mov ebp, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebp
jle 0x100852d1
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x3c], edx
jmp 0x1008514d
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
movzx ebx, si
mov edx, esi
mov eax, ebp
mov dword [esp + 0x34], ebx
movzx ebp, bp
mov esi, 0x10000
sub esi, ebx
mov ebx, 0x10000
sub ebx, ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x54]
add dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x58]
add dword [esp + 0x30], ebx
sar eax, 0x10
sar edx, 0x10
test eax, eax
mov dword [esp + 0x18], ebp
jge 0x100851ce
test edx, edx
jge 0x10085198
mov al, byte [edi]
mov byte [ecx], al
jmp 0x100852c3
mov eax, dword [esp + 0x40]
lea ebx, [eax - 1]
cmp edx, ebx
jl 0x100851ac
mov dl, byte [eax + edi - 1]
jmp 0x100852c1
movzx eax, byte [edx + edi]
movzx edx, byte [edx + edi + 1]
imul eax, esi
imul edx, dword [esp + 0x34]
lea eax, [eax + edx + 0x8000]
shr eax, 0x10
mov byte [ecx], al
jmp 0x100852c3
mov ebp, dword [esp + 0x50]
lea ebx, [ebp - 1]
cmp eax, ebx
jl 0x1008522b
test edx, edx
jge 0x100851ea
imul ebx, dword [esp + 0x40]
mov dl, byte [ebx + edi]
jmp 0x100852c1
mov ebx, dword [esp + 0x40]
lea eax, [ebx - 1]
cmp edx, eax
jl 0x10085203
imul ebp, ebx
mov al, byte [edi + ebp - 1]
mov byte [ecx], al
jmp 0x100852c3
lea eax, [ebp - 1]
imul eax, ebx
add eax, edx
movzx edx, byte [eax + edi]
movzx eax, byte [eax + edi + 1]
imul edx, esi
imul eax, dword [esp + 0x34]
lea edx, [edx + eax + 0x8000]
shr edx, 0x10
jmp 0x100852c1
test edx, edx
jge 0x10085256
mov edx, dword [esp + 0x40]
imul eax, edx
add edx, eax
movzx edx, byte [edx + edi]
movzx eax, byte [eax + edi]
imul edx, dword [esp + 0x18]
imul eax, dword [esp + 0x24]
lea edx, [edx + eax + 0x8000]
shr edx, 0x10
jmp 0x100852c1
mov ebx, dword [esp + 0x40]
lea ebp, [ebx - 1]
cmp edx, ebp
jl 0x1008526f
add eax, 1
imul eax, ebx
sub eax, 1
lea edx, [eax + ebx]
jmp 0x10085238
imul eax, ebx
add eax, edx
lea edx, [ebx + edi]
movzx ebx, byte [eax + edx]
movzx edx, byte [eax + edx + 1]
imul ebx, esi
imul edx, dword [esp + 0x34]
lea edx, [ebx + edx + 0x800]
movzx ebx, byte [eax + edi]
movzx eax, byte [eax + edi + 1]
imul ebx, esi
imul eax, dword [esp + 0x34]
lea eax, [ebx + eax + 0x800]
shr edx, 0xc
imul edx, dword [esp + 0x18]
shr eax, 0xc
imul eax, dword [esp + 0x24]
lea edx, [edx + eax + 0x80000]
shr edx, 0x14
mov byte [ecx], dl
add ecx, 1
sub dword [esp + 0x3c], 1
jne 0x10085145
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esi, dword [esp + 0x5c]
add edx, dword [esp + 0x4c]
sub dword [esp + 0x20], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
jne 0x10085120
lea ecx, [esp + 0x98]
call fcn.10050d00
jmp 0x1008532b
mov esi, dword [esp + 0xb0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x54]
lea ecx, [esi + 0x1c]
push edx
mov edx, dword [esp + 0xbc]
push edx
call eax
push 0
call fcn.100751a0
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret